<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>信审回访记录</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
	<div class="Wrapper">
		<form id="formSet1">
			<div class="fieldset1 tabel_col clearFix">
				<div id="isDetail" class="fieldBox col_100" style="display: none">
					<div class="label">回访链接</div>
					<div class="field">
						<a href="<%=path%>/audit/audReturnVisit/toAddPage.do?isDetail=1&projectId=${projectId }&proIntId=${proIntId }" target="_blank" class="link">
						/audit/audReturnVisit/toAddPage.do?isDetail=1&projectId=${projectId }&proIntId=${proIntId }
						</a>
					</div>
				</div>
				<c:if test="${cstNm != null }">
								<div class="fieldBox col_33">
					<div class="label">承租人姓名</div>
					<div class="field">
						<span id="personnelNameD" name="personnelNameD">${cstNm }</span>
						<input type="hidden" id="personnelName" name="personnelName" value="${cstNm }" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${cstNm == null ||cstNm =='' }">
				<div class="fieldBox col_33">
					<div class="label">承租人姓名</div>
					<div class="field">
						<span id="personnelNameD" name="personnelNameD">${cstNm }</span>
						<input type="hidden" id="personnelName" name="personnelName" value="${cstNm }">
					</div>
				</div>
				</c:if>
				<div class="fieldBox col_33">
					<div class="label">客户经理</div>
					<div class="field">
						<span id="accountManagerNmD" name="accountManagerNmD">${cstMgrNm }</span>
						<input type="hidden" id="accountManagerId" name="accountManagerId" value="${cstMgrId }">
						<input type="hidden" id="accountManagerNm" name="accountManagerNm" value="${cstMgrNm }">
					</div>
				</div>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.auditorNm != null}">
								<div class="fieldBox col_33">
					<div id="xsy1" class="label">信审员</div>
					<div id="xsy2" class="field">
						<input type="text" name="auditorNm" id="auditorNm" placeholder="请选择" />
						<!-- <span class="requiredSymbol">*</span> -->
						<%-- <span id="auditorNmD" name="auditorNmD">${userNm }</span>
						<input type="hidden" id="auditorId" name="auditorId" value="${userId }">
						<input type="hidden" id="auditorNm" name="auditorNm" value="${userNm }"> --%>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.auditorNm == null ||audReturnVisitvo.tenantVisitRecordVO.auditorNm == ''}">
					<div class="fieldBox col_33">
					<div  id="xsy3"  class="label">信审员</div>
					<div id="xsy4" class="field">
						<input type="text" name="auditorNm" id="auditorNm" placeholder="请选择"/>
						<!-- <span class="requiredSymbol">*</span> -->
						<%-- <span id="auditorNmD" name="auditorNmD">${userNm }</span>
						<input type="hidden" id="auditorId" name="auditorId" value="${userId }">
						<input type="hidden" id="auditorNm" name="auditorNm" value="${userNm }"> --%>
					</div>
				</div>
				</c:if>
                <c:if test="${audReturnVisitvo.tenantVisitRecordVO.visitTm != null }">
                	<div class="fieldBox col_33">
					<div class="label">回访时间</div>
					<div class="field">
						<input name="visitTm" id="visitTm"  type="text" class="ui-datepicker" value="" readonly="readonly">
					</div>
				</div>
                </c:if>
                <c:if test="${audReturnVisitvo.tenantVisitRecordVO.visitTm == null ||audReturnVisitvo.tenantVisitRecordVO.visitTm == '' }">
                	<div class="fieldBox col_33">
					<div class="label">回访时间</div>
					<div class="field">
						<input name="visitTm" id="visitTm" type="text" class="ui-datepicker" value="" >
					</div>
				</div>
                </c:if>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.phone != null}">
				<div class="fieldBox col_33">
					<div class="label">回访电话</div>
					<div class="field">
						<input name="phone" id="phone" readonly="readonly" type="text" class="ui-textbox" value="${phone }" readonly="readonly">
					</div>
				</div>
				</c:if>
                <c:if test="${audReturnVisitvo.tenantVisitRecordVO.phone == null || tenantVisitRecordVO.phone == ''}">
                <div class="fieldBox col_33">
					<div class="label">回访电话</div>
					<div class="field">
						<input name="phone" id="phone" type="text" class="ui-textbox" value="${phone }" >
					</div>
				</div>
                </c:if>
                <div class="fieldBox col_33">
					<div class="label">回访专员</div>
					<div class="field">
						<input type="text" name="returnVisitNm" id="returnVisitNm" placeholder="请选择" validate ="{required:true}"/>
						<span class="requiredSymbol">*</span>
						<%-- <span id="auditorNmD" name="auditorNmD">${userNm }</span>
						<input type="hidden" id="auditorId" name="auditorId" value="${userId }">
						<input type="hidden" id="auditorNm" name="auditorNm" value="${userNm }"> --%>
					</div>
				</div>
				<div class="caption">
					<span class="title">身份确认</span>
				</div>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.isSelfAnswer != null }">
				<div class="fieldBox col_33">
					<div class="label">是否本人接听</div>
					<div class="field">
						<select name="isSelfAnswer" id="isSelfAnswer" disabled="disabled" data-value=" "  onchange="this.selectedIndex=this.defaultIndex;"  >
							<option value=" " checked >请选择</option>
							<c:forEach items="${yesOrNoTypeCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.isSelfAnswer == null ||audReturnVisitvo.tenantVisitRecordVO.isSelfAnswer == '' }">
				    <div class="fieldBox col_33">
					<div class="label">是否本人接听</div>
					<div class="field">
						<select name="isSelfAnswer" id="isSelfAnswer" data-value=" " onchange="refleshTenantVisitDyncDiv();">
							<option value=" " checked >请选择</option>
							<c:forEach items="${yesOrNoTypeCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>

				<!-- 承租人回访 是否本人接听  -->
				<div id="tenantVisitDyncDiv" class="fieldBox col_100_auto">
					<%-- <jsp:include page="audTenantVisitInfoDyncPage.jsp"></jsp:include> --%>
				</div>
				<div class="fieldBox col_33">
					<div class="label">身份信息</div>
					<div class="field">
						<input name="certNo" id="certNo" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				<div class="fieldBox col_33">
					<div class="label">家庭住址</div>
					<div class="field">
						<input name="postAddr" id="postAddr" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				<%-- <c:if test="${audReturnVisitvo.tenantVisitRecordVO.identityCd != null}">
					<div class="fieldBox col_33">
					<div class="label">身份信息</div>
					<div class="field">
						<select name="identityCd" id="identityCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${returnVisitConfirmCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.identityCd == null || audReturnVisitvo.tenantVisitRecordVO.identityCd == ''}">
				<div class="fieldBox col_33">
					<div class="label">身份信息</div>
					<div class="field">
						<select name="identityCd" id="identityCd" data-value=" ">
							<option value=" " checked >请选择</option>
							<c:forEach items="${returnVisitConfirmCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.addressCd != null}">
				<div class="fieldBox col_33">
					<div class="label">家庭住址</div>
					<div class="field">
						<select name="addressCd" id="addressCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${returnVisitConfirmCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.addressCd == null ||audReturnVisitvo.tenantVisitRecordVO.addressCd == ''}">
				<div class="fieldBox col_33">
					<div class="label">家庭住址</div>
					<div class="field">
						<select name="addressCd" id="addressCd" data-value=" " >
							<option value=" " checked >请选择</option>
							<c:forEach items="${returnVisitConfirmCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>--%>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.address != null}"> 
				<div class="fieldBox col_33">
					<div class="label">另述住址</div>
					<div class="field">
						<input name="address" id="address" type="text" class="ui-textbox" value="" readonly="readonly" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.tenantVisitRecordVO.address == null ||audReturnVisitvo.tenantVisitRecordVO.address == ''}">
				<div class="fieldBox col_33">
					<div class="label">另述住址</div>
					<div class="field">
						<input name="address" id="address" type="text" class="ui-textbox" value=""  >
					</div>
				</div>
				</c:if>
				
				<div class="caption">
					<span class="title">车辆确认</span>
				</div>
				<c:if test="${audReturnVisitvo.times != null }">
				<div class="fieldBox col_33">
					<div class="label">融资次数</div>
					<div class="field">
						<input name="times" id="times" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.times == null ||audReturnVisitvo.times == '' }">
				<div class="fieldBox col_33">
					<div class="label">融资次数</div>
					<div class="field">
						<input name="times" id="times" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.equipmentNum != null }">
				<div class="fieldBox col_33">
					<div class="label">设备数量</div>
					<div class="field">
						<input name="equipmentNum" id="equipmentNum" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.equipmentNum == null || audReturnVisitvo.equipmentNum == '' }">
				<div class="fieldBox col_33">
					<div class="label">设备数量</div>
					<div class="field">
						<input name="equipmentNum" id="equipmentNum" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>

				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">座位数</div>
					<div class="field">
						<input name="seating" id="seating" type="text" class="ui-textbox" value="" validate ="{number:true}">
					</div>
				</div>
				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">车身长度</div>
					<div class="field">
						<input name="busLen" id="busLen" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">制动方式</div>
					<div class="field">
						<input name="braking" id="braking" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">动力方式</div>
					<div class="field">
						<select name="powerCd" id="powerCd" data-value=" " >
							<option value=" " checked >请选择</option>
							<c:forEach items="${powerCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">选装配置</div>
					<div class="field">
						<input name="potionCfg" id="potionCfg" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				<!-- 车辆确认动态模块 -->
				<!-- <div id="vehDyncDiv" class="fieldBox col_100_auto"> -->
					<%-- <jsp:include page="audVehVisitInfoDyncPage.jsp"></jsp:include> --%>
				<!-- </div> -->
				<!-- ================================车辆确认动态模块  转为固定字段  START===================================== -->
				<c:if test="${audReturnVisitvo.isExistTrunc != null }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrgCd == 00000013 }">style="display: none"</c:if>>
					<div class="label">是否含挂车</div>
					<div class="field">
						<select name="isExistTrunc" id="isExistTrunc" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${yesOrNoTypeCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.isExistTrunc == null ||audReturnVisitvo.isExistTrunc == '' }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrgCd == 00000013 }">style="display: none"</c:if>>
					<div class="label">是否含挂车</div>
					<div class="field">
						<select name="isExistTrunc" id="isExistTrunc" data-value=" " >
							<option value=" " checked >请选择</option>
							<c:forEach items="${yesOrNoTypeCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.motorHorsepower != null }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd == 00000013 }">style="display: none"</c:if>>
					<div class="label">发动机马力</div>
					<div class="field">
						<input name="motorHorsepower" id="motorHorsepower" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.motorHorsepower == null || audReturnVisitvo.motorHorsepower ==''}">
				<div class="fieldBox col_33" <c:if test="${buOrgCd == 00000013 }">style="display: none"</c:if>>
					<div class="label">发动机马力</div>
					<div class="field">
						<input name="motorHorsepower" id="motorHorsepower" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.containerSize != null }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrgCd == 00000013}">style="display: none"</c:if>>
					<div class="label">货箱规格</div>
					<div class="field">
						<input name="containerSize" id="containerSize" type="text" class="ui-textbox" value="" readonly="readonly" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.containerSize == null || audReturnVisitvo.containerSize == ''}">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrgCd == 00000013}">style="display: none"</c:if>>
					<div class="label">货箱规格</div>
					<div class="field">
						<input name="containerSize" id="containerSize" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.truncStandard != null }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrgCd == 00000013}">style="display: none"</c:if>>
					<div class="label">挂车规格</div>
					<div class="field">
						<input name="truncStandard" id="truncStandard" type="text" class="ui-textbox" value="" readonly="readonly" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.truncStandard == null || audReturnVisitvo.truncStandard == ''}">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrgCd == 00000013}">style="display: none"</c:if>>
					<div class="label">挂车规格</div>
					<div class="field">
						<input name="truncStandard" id="truncStandard" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.truncConfig != null }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrgCd == 00000013}">style="display: none"</c:if>>
					<div class="label">挂车配置</div>
					<div class="field">
						<input name="truncConfig" id="truncConfig" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.truncConfig == null || audReturnVisitvo.truncConfig == ''}">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrgCd == 00000013}">style="display: none"</c:if>>
					<div class="label">挂车配置</div>
					<div class="field">
						<input name="truncConfig" id="truncConfig" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.emissionStandard != null }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd == 00000013 }">style="display: none"</c:if>>
					<div class="label">排放/排量</div>
					<div class="field">
						<input name="emissionStandard" id="emissionStandard" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.emissionStandard == null || audReturnVisitvo.emissionStandard == '' }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd == 00000013 }">style="display: none"</c:if>>
					<div class="label">排放/排量</div>
					<div class="field">
						<input name="emissionStandard" id="emissionStandard" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.gearbox != null }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrdCd==00000013}">style="display: none"</c:if>>
					<div class="label">变速箱</div>
					<div class="field">
						<input name="gearbox" id="gearbox" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.gearbox == null || audReturnVisitvo.gearbox == ''}">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 || buOrdCd==00000013}">style="display: none"</c:if>>
					<div class="label">变速箱</div>
					<div class="field">
						<input name="gearbox" id="gearbox" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.carBrandCd != null }">
				<div class="fieldBox col_33">
					<div class="label">品牌及车型</div>
					<div class="field">
						<input name="carBrandCd" id="carBrandCd" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.carBrandCd == null ||audReturnVisitvo.carBrandCd == ''}">
				<div class="fieldBox col_33">
					<div class="label">品牌及车型</div>
					<div class="field">
						<input name="carBrandCd" id="carBrandCd" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<!-- 新能源新增 -->
				<c:if test="${audReturnVisitvo.holdSpace != null }">
				<div class="fieldBox col_33">
					<div class="label">载货空间(m³)</div>
					<div class="field">
						<input name="holdSpace" id="holdSpace" type="text" class="ui-textbox" value="" validate ="{number:true}" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.holdSpace == null || audReturnVisitvo.holdSpace == ''}">
				<div class="fieldBox col_33">
					<div class="label">载货空间(m³)</div>
					<div class="field">
						<input name="holdSpace" id="holdSpace" type="text" class="ui-textbox" value="" validate ="{number:true}">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.batDeg != null }">
				<div class="fieldBox col_33">
					<div class="label">电池度数(Kwh)</div>
					<div class="field">
						<input name="batDeg" id="batDeg" type="text" class="ui-textbox" value="" validate ="{number:true}" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.batDeg == null || audReturnVisitvo.batDeg == ''}">
				<div class="fieldBox col_33">
					<div class="label">电池度数(Kwh)</div>
					<div class="field">
						<input name="batDeg" id="batDeg" type="text" class="ui-textbox" value="" validate ="{number:true}">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.endMileage != null }">
				<div class="fieldBox col_33">
					<div class="label">续航里程(km)</div>
					<div class="field">
						<input name="endMileage" id="endMileage" type="text" class="ui-textbox" value="" validate ="{number:true}" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.endMileage == null || audReturnVisitvo.endMileage == ''}">
				<div class="fieldBox col_33">
					<div class="label">续航里程(km)</div>
					<div class="field">
						<input name="endMileage" id="endMileage" type="text" class="ui-textbox" value="" validate ="{number:true}">
					</div>
				</div>
				</c:if>
				<!-- ================================车辆确认动态模块  转为固定字段  END ===================================== -->
				<div class="caption">
					<span class="title">融资方案</span>
				</div>
				<c:if test="${audReturnVisitvo.mainMarketPrice != null }">
				<div class="fieldBox col_33">
					<div class="label">主车价格</div>
					<div class="field">
						<input name="mainMarketPrice" id="mainMarketPrice" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.mainMarketPrice == null || audReturnVisitvo.mainMarketPrice == ''}">
				<div class="fieldBox col_33">
					<div class="label">主车价格</div>
					<div class="field">
						<input name="mainMarketPrice" id="mainMarketPrice" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.truncMarketPrice != null }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 }">style="display: none"</c:if>>
					<div class="label">挂车价格</div>
					<div class="field">
						<input name="truncMarketPrice" id="truncMarketPrice" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.truncMarketPrice == null || audReturnVisitvo.truncMarketPrice == ''}">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 }">style="display: none"</c:if>>
					<div class="label">挂车价格</div>
					<div class="field">
						<input name="truncMarketPrice" id="truncMarketPrice" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.itemPay != null }">
				<div class="fieldBox col_33">
					<div class="label">款项缴纳情况</div>
					<div class="field">
						<input name="itemPay" id="itemPay" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.itemPay == null || audReturnVisitvo.itemPay == ''}">
				<div class="fieldBox col_33">
					<div class="label">款项缴纳情况</div>
					<div class="field">
						<input name="itemPay" id="itemPay" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.pickCardCd != null }">
				<div class="fieldBox col_33">
					<div class="label">提车情况</div>
					<div class="field">
						<select name="pickCardCd" id="pickCardCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${pickCardCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.pickCardCd == null || audReturnVisitvo.pickCardCd == '' }">
				<div class="fieldBox col_33">
					<div class="label">提车情况</div>
					<div class="field">
						<select name="pickCardCd" id="pickCardCd" data-value=" " >
							<option value=" " checked >请选择</option>
							<c:forEach items="${pickCardCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.statusCd != null }">
				<div class="fieldBox col_33">
					<div class="label">上牌情况</div>
					<div class="field">
						<select name="statusCd" id="statusCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${statusCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.statusCd == null || audReturnVisitvo.statusCd == ''}">
				<div class="fieldBox col_33">
					<div class="label">上牌情况</div>
					<div class="field">
						<select name="statusCd" id="statusCd" data-value=" ">
							<option value=" " checked >请选择</option>
							<c:forEach items="${statusCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.cardDate != null }">
				<div class="fieldBox col_33">
					<div class="label">上牌时间</div>
					<div class="field">
						<input name="cardDate" id="cardDate" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.cardDate == null || audReturnVisitvo.cardDate == '' }">
				<div class="fieldBox col_33">
					<div class="label">上牌时间</div>
					<div class="field">
						<input name="cardDate" id="cardDate" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.vehiclesDoorCd != null }">
				<div class="fieldBox col_33">
					<div class="label">车辆上户</div>
					<div class="field">
						<select name="vehiclesDoorCd" id="vehiclesDoorCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${vehiclesDoorCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.vehiclesDoorCd == null || audReturnVisitvo.vehiclesDoorCd == ''}">
				<div class="fieldBox col_33">
					<div class="label">车辆上户</div>
					<div class="field">
						<select name="vehiclesDoorCd" id="vehiclesDoorCd" data-value=" ">
							<option value=" " checked >请选择</option>
							<c:forEach items="${vehiclesDoorCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.leaseTerm != null }">
				<div class="fieldBox col_33">
					<div class="label">融资期限</div>
					<div class="field">
						<input name="leaseTerm" id="leaseTerm" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.leaseTerm == null || audReturnVisitvo.leaseTerm == ''}">
				<div class="fieldBox col_33">
					<div class="label">融资期限</div>
					<div class="field">
						<input name="leaseTerm" id="leaseTerm" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<!-- 融资方案动态模块 -->
				<!-- <div id="schemeDyncDiv" class="fieldBox col_100_auto"> -->
					<%-- <jsp:include page="audSchemeVisitInfoDyncPage.jsp"></jsp:include> --%>
				<!-- </div> -->
				<!-- =========================融资方案动态模块  转为固定字段 Start============================= -->
				<c:if test="${audReturnVisitvo.monthRepayment != null }">
				<div class="fieldBox col_33">
					<div class="label">月还款</div>
					<div class="field">
						<input name="monthRepayment" id="monthRepayment" type="text" class="ui-textbox" value="" readonly="readonly" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.monthRepayment == null || audReturnVisitvo.monthRepayment == '' }">
				<div class="fieldBox col_33">
					<div class="label">月还款</div>
					<div class="field">
						<input name="monthRepayment" id="monthRepayment" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.agentCardStateCd != null }">
				<div class="fieldBox col_33">
					<div class="label">代扣卡</div>
					<div class="field">
						<select name="agentCardStateCd" id="agentCardStateCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${agentCardStateCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.agentCardStateCd == null || audReturnVisitvo.agentCardStateCd == ''}">
				<div class="fieldBox col_33">
					<div class="label">代扣卡</div>
					<div class="field">
						<select name="agentCardStateCd" id="agentCardStateCd" data-value=" " >
							<option value=" " checked >请选择</option>
							<c:forEach items="${agentCardStateCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.eqmtAddressCd != null }">
				<div class="fieldBox col_33">
					<div class="label">位置</div>
					<div class="field">
						<select name="eqmtAddressCd" id="eqmtAddressCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${eqmtAddressCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.eqmtAddressCd == null || audReturnVisitvo.eqmtAddressCd  == ''}">
				<div class="fieldBox col_33">
					<div class="label">位置</div>
					<div class="field">
						<select name="eqmtAddressCd" id="eqmtAddressCd" data-value=" ">
							<option value=" " checked >请选择</option>
							<c:forEach items="${eqmtAddressCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.affiliatedCompany != null }">
				<div class="fieldBox col_66">
					<div class="label" role="textclip">挂靠公司</div>
					<div class="field">
						<textarea name="affiliatedCompany" id="affiliatedCompany" type="text" class="ui-textarea l-textarea" style="width:96%;height: 18px;" value="" readonly="readonly"></textarea>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.affiliatedCompany == null || audReturnVisitvo.affiliatedCompany == ''}">
				<div class="fieldBox col_66">
					<div class="label" role="textclip">挂靠公司</div>
					<div class="field">
						<textarea name="affiliatedCompany" id="affiliatedCompany" type="text" class="ui-textarea l-textarea" style="width:96%;height: 18px;" value="" ></textarea>
					</div>
				</div>
				</c:if>
				<!-- =========================融资方案动态模块  转为固定字段 End============================= -->
				<div class="caption">
					<span class="title">提供信息保障</span>
				</div>
				<c:if test="${audReturnVisitvo.guraRl != null }">
				<div class="fieldBox col_33">
					<div class="label" role="textclip">担保人关系</div>
					<div class="field">
						<textarea name="guraRl" id="guraRl" class="ui-textarea l-textarea" style="width:90%;height: 20px;" value="" readonly="readonly"></textarea>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.guraRl == null || audReturnVisitvo.guraRl == ''}">
				<div class="fieldBox col_33">
					<div class="label" role="textclip">担保人关系</div>
					<div class="field">
						<textarea name="guraRl" id="guraRl" class="ui-textarea l-textarea" style="width:90%;height: 20px;" value="" ></textarea>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.guraRem != null }">
				<div class="fieldBox col_66">
					<div class="label" role="textclip">担保人备注</div>
					<div class="field">
						<textarea name="guraRem" id="guraRem" class="ui-textarea l-textarea" style="width:90%;height: 20px;" value="" readonly="readonly"></textarea>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.guraRem == null || audReturnVisitvo.guraRem == ''}">
				<div class="fieldBox col_66">
					<div class="label" role="textclip">担保人备注</div>
					<div class="field">
						<textarea name="guraRem" id="guraRem" class="ui-textarea l-textarea" style="width:90%;height: 20px;" value="" ></textarea>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.ugRl != null }">
				<div class="fieldBox col_33">
					<div class="label" role="textclip">紧急联系人关系</div>
					<div class="field">
						<textarea name="ugRl" id="ugRl" class="ui-textarea l-textarea" style="width:90%;height: 20px;" value="" readonly="readonly"></textarea>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.ugRl == null || audReturnVisitvo.ugRl == '' }">
				<div class="fieldBox col_33">
					<div class="label" role="textclip">紧急联系人关系</div>
					<div class="field">
						<textarea name="ugRl" id="ugRl" class="ui-textarea l-textarea" style="width:90%;height: 20px;" value="" ></textarea>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.ugRem != null }">
				<div class="fieldBox col_66">
					<div class="label" role="textclip">紧急联系人备注</div>
					<div class="field">
						<textarea name="ugRem" id="ugRem" class="ui-textarea l-textarea" style="width:90%;height: 20px;" value="" readonly="readonly"></textarea>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.ugRem == null || audReturnVisitvo.ugRem == ''}">
				<div class="fieldBox col_66">
					<div class="label" role="textclip">紧急联系人备注</div>
					<div class="field">
						<textarea name="ugRem" id="ugRem" class="ui-textarea l-textarea" style="width:90%;height: 20px;" value="" ></textarea>
					</div>
				</div>
				</c:if>
				<div class="caption">
					<span class="title">车辆运营</span>
				</div>
				<!-- 不区分盈利方式了 -->
				<c:if test="${audReturnVisitvo.audVisitTkVO.selfTkDesc != null }">
				<div class="fieldBox col_33">
					<div class="label">自有车辆情况</div>
					<div class="field">
						<input name="selfTkDesc"  id="selfTkDesc" type="text" onblur="checkSelfTkDesc()" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.selfTkDesc == null || audReturnVisitvo.audVisitTkVO.selfTkDesc == ''}">
				<div class="fieldBox col_33">
					<div class="label">自有车辆情况</div>
					<div class="field">
						<input name="selfTkDesc"  id="selfTkDesc" type="text" onblur="checkSelfTkDesc()" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.profitCd != null}">
				<div class="fieldBox col_33">
					<div class="label">收入方式</div>
					<div class="field">
						<select name="profitCd" id="profitCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${profitCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.profitCd == null || audReturnVisitvo.audVisitTkVO.profitCd == ''}">
				<div class="fieldBox col_33">
					<div class="label">收入方式</div>
					<div class="field">
						<select name="profitCd" id="profitCd" data-value=" ">
							<option value=" " checked >请选择</option>
							<c:forEach items="${profitCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<%-- <div class="fieldBox col_33">
					<div class="label">运营年限</div>
					<div class="field">
						<select name="bizExp" id="bizExp" data-value=" ">
							<option value=" " checked >请选择</option>
							<c:forEach items="${bizExpList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div> --%>
				<c:if test="${audReturnVisitvo.audVisitTkVO.bizExp != null }">
					<div class="fieldBox col_33">
					<div class="label">运营年限</div> 
					<div class="field">
						<input name="bizExp"  id="bizExp" type="text" onblur="checkBizExp()" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.bizExp == null || audReturnVisitvo.audVisitTkVO.bizExp == ''}">
					<div class="fieldBox col_33">
					<div class="label">运营年限</div> 
					<div class="field">
						<input name="bizExp"  id="bizExp" type="text" onblur="checkBizExp()" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.mainGdsTypCd != null }">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 }">style="display: none"</c:if>>
					<div class="label">主货物大类</div>
					<div class="field">
						<select name="mainGdsTypCd" id="mainGdsTypCd" data-value=" " onchange="getTripGoodsSubCd();" disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${mainGdsTypCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.mainGdsTypCd == null || audReturnVisitvo.audVisitTkVO.mainGdsTypCd  == ''}">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 }">style="display: none"</c:if>>
					<div class="label">主货物大类</div>
					<div class="field">
						<select name="mainGdsTypCd" id="mainGdsTypCd" data-value=" " onchange="getTripGoodsSubCd();">
							<option value=" " checked >请选择</option>
							<c:forEach items="${mainGdsTypCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.goods != null}">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 }">style="display: none"</c:if>>
					<div class="label">主运输货物</div>
					<div class="field">
						<select name="goods" id="goods" data-value=" " disabled="disabled">
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.goods == null || audReturnVisitvo.audVisitTkVO.goods == ''}">
				<div class="fieldBox col_33" <c:if test="${buOrgCd==00000008 }">style="display: none"</c:if>>
					<div class="label">主运输货物</div>
					<div class="field">
						<select name="goods" id="goods" data-value=" ">
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.route != null}">
				<div class="fieldBox col_33">
					<div class="label">运营路线</div>
					<div class="field">
						<input name="route" id="route" type="text" class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.route == null || audReturnVisitvo.audVisitTkVO.route == ''}">
				<div class="fieldBox col_33">
					<div class="label">运营路线</div>
					<div class="field">
						<input name="route" id="route" type="text" class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.goodsRes != null }">
				<div class="fieldBox col_33">
					<div class="label">货物来源</div>
					<div class="field">
						<select name="goodsRes" id="goodsRes" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${goodsResList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.goodsRes == null || audReturnVisitvo.audVisitTkVO.goodsRes == ''}">
				<div class="fieldBox col_33">
					<div class="label">货物来源</div>
					<div class="field">
						<select name="goodsRes" id="goodsRes" data-value=" ">
							<option value=" " checked >请选择</option>
							<c:forEach items="${goodsResList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.gdsStlWayCd != null }">
				<div class="fieldBox col_33">
					<div class="label">主货物结算方式</div>
					<div class="field">
						<select name="gdsStlWayCd" id="gdsStlWayCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${gdsStlWayCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.gdsStlWayCd == null || audReturnVisitvo.audVisitTkVO.gdsStlWayCd == ''}">
				<div class="fieldBox col_33">
					<div class="label">主货物结算方式</div>
					<div class="field">
						<select name="gdsStlWayCd" id="gdsStlWayCd" data-value=" ">
							<option value=" " checked >请选择</option>
							<c:forEach items="${gdsStlWayCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.driver != null }">
				<div class="fieldBox col_33">
					<div class="label">司机情况</div>
					<div class="field">
						<select name="driver" id="driver" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${driverList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.driver == null || audReturnVisitvo.audVisitTkVO.driver == ''}">
				<div class="fieldBox col_33">
					<div class="label">司机情况</div>
					<div class="field">
						<select name="driver" id="driver" data-value=" ">
							<option value=" " checked >请选择</option>
							<c:forEach items="${driverList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.secondPayResCd != null }">
				<div class="fieldBox col_33">
					<div class="label">第二还款来源</div>
					<div class="field">
						<select name="secondPayResCd" id="secondPayResCd" data-value=" " disabled="disabled">
							<option value=" " checked >请选择</option>
							<c:forEach items="${secondPayResCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<c:if test="${audReturnVisitvo.audVisitTkVO.secondPayResCd == null || audReturnVisitvo.audVisitTkVO.secondPayResCd == ''}">
				<div class="fieldBox col_33">
					<div class="label">第二还款来源</div>
					<div class="field">
						<select name="secondPayResCd" id="secondPayResCd" data-value=" " >
							<option value=" " checked >请选择</option>
							<c:forEach items="${secondPayResCdList }" var="kv">
								<option value="${kv.key }">${kv.value }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				</c:if>
				<!-- 专车客车 Start -->
				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">净收入</div>
					<div class="field">
						<input name="netIncome" id="netIncome" type="text" data-tofix="2" class="ui-textbox" value="" validate ="{number:true}">
						元/月
					</div>
				</div>
				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">旺季包车费</div>
					<div class="field">
						<input name="highEasonCharterdBus" id="highEasonCharterdBus" type="text" data-tofix="2" class="ui-textbox" value="" validate ="{number:true}">
						元/天
					</div>
				</div>
				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">淡季包车费</div>
					<div class="field">
						<input name="peakEasonCharterdBus" id="peakEasonCharterdBus" type="text" data-tofix="2" class="ui-textbox" value="" validate ="{number:true}">
						元/天
					</div>
				</div>
				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">其他费用占比</div>
					<div class="field">
						<input name="otherFeePct" id="otherFeePct" type="text" class="ui-textbox" value="" validate ="{number:true}">
						%
					</div>
				</div>
				<div class="fieldBox col_33" <c:if test="${buOrgCd!=00000008 }">style="display: none"</c:if>>
					<div class="label">毛收入</div>
					<div class="field">
						<input name="grossIncome" id="grossIncome" type="text" data-tofix="2" class="ui-textbox" value="" validate ="{number:true}">
						元/月						
					</div>
				</div>
				<!-- 专车客车 end -->
				<c:if test="${audReturnVisitvo.audVisitTkVO.otherInfo != null }">
				<div class="fieldBox col_66">
					<div class="label" role="textclip">其他信息</div>
					<div class="field">
						<!-- <textarea name="otherInfo" id="otherInfo" class="l-textarea" style="width:99%" rows ="1" value="" ></textarea> -->
						<textarea name="otherInfo" id="otherInfo" rows="1" class="ui-textarea l-textarea" style="width:96%;height: 20px;" readonly="readonly"></textarea>
					</div>
				</div>
				  </c:if>
				  <c:if test="${audReturnVisitvo.audVisitTkVO.otherInfo == null || audReturnVisitvo.audVisitTkVO.otherInfo == ''}">
				<div class="fieldBox col_66">
					<div class="label" role="textclip">其他信息</div>
					<div class="field">
						<!-- <textarea name="otherInfo" id="otherInfo" class="l-textarea" style="width:99%" rows ="1" value="" ></textarea> -->
						<textarea name="otherInfo" id="otherInfo" rows="1" class="ui-textarea l-textarea" style="width:96%;height: 20px;"></textarea>
					</div>
				</div>
				  </c:if>
				  <c:if test="${circuitType != null }">
	      		     <div class="fieldBox col_33" >
	      			<div class="label">线路类型</div>
	      			<div class="field">
	      			<select name="circuitType" id="circuitType" data-value=" " disabled="disabled">
	      				 <option value=" " checked>请选择</option>
                   		 <c:forEach items="${CircuitTypeCd}" var="circuitType">
                   		 	<option value="${circuitType.key}">${circuitType.value}</option>
                      </c:forEach>
	      			</select>
	      			</div>
	      		</div>
	      		</c:if>
	      		 <c:if test="${circuitType == null || circuitType == ''}">
	      		     <div class="fieldBox col_33" >
	      			<div class="label">线路类型</div>
	      			<div class="field">
	      			<select name="circuitType" id="circuitType" data-value=" ">
	      				 <option value=" " checked>请选择</option>
                   		 <c:forEach items="${CircuitTypeCd}" var="circuitType">
                   		 	<option value="${circuitType.key}">${circuitType.value}</option>
                      </c:forEach>
	      			</select>
	      			</div>	 
	      		</div>	
	      		</c:if>
	      		<c:if test="${cargoWeigth != null }">
				<div class="fieldBox col_33">
					<div class="label">货物重量(t)</div>
					<div class="field">
						<input name="cargoWeigth"  id="cargoWeigth" type="text" onblur="checkCargoWeigth()"  class="ui-textbox" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${cargoWeigth == null || cargoWeigth == ''}">
				<div class="fieldBox col_33">
					<div class="label">货物重量(t)</div>
					<div class="field">
						<input name="cargoWeigth"  id="cargoWeigth" type="text" onblur="checkCargoWeigth()"  class="ui-textbox" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${cargoVomule != null  }">
				<div class="fieldBox col_33">
					<div class="label">货物体积(方)</div>
					<div class="field">
						<input name="cargoVomule"  id="cargoVomule" type="text" class="ui-textbox" onblur = "checkCargoVomule()" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${cargoVomule == null || cargoVomule =='' }">
				<div class="fieldBox col_33">
					<div class="label">货物体积(方)</div>
					<div class="field">
						<input name="cargoVomule"  id="cargoVomule" type="text" class="ui-textbox" onblur = "checkCargoVomule()" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${handingMode != null }">
				  <div class="fieldBox col_33" >
	      			<div class="label">装卸方式</div>
	      			<div class="field">
	      			<select name="handingMode" id="handingMode" data-value=" " disabled="disabled">
	      				 <option value=" " checked>请选择</option>
                   		 <c:forEach items="${HanglingModeCd}" var="handingMode">
                   		 	<option value="${handingMode.key}">${handingMode.value}</option>
                      </c:forEach>
	      			</select>
	      			</div>
	      		</div>
	      		</c:if>
	      		<c:if test="${handingMode == null || handingMode == ''}">
				  <div class="fieldBox col_33" >
	      			<div class="label">装卸方式</div>
	      			<div class="field">
	      			<select name="handingMode" id="handingMode" data-value=" ">
	      				 <option value=" " checked>请选择</option>
                   		 <c:forEach items="${HanglingModeCd}" var="handingMode">
                   		 	<option value="${handingMode.key}">${handingMode.value}</option>
                      </c:forEach>
	      			</select>
	      			</div>	 
	      		</div>	
	      		</c:if>
	      		<c:if test="${circuitEfficiency != null }">
	      		<div class="fieldBox col_33">
					<div class="label">线路月效率(趟)</div>
					<div class="field">
						<input name="circuitEfficiency"  id="circuitEfficiency" type="text" class="ui-textbox" onblur = "ckeckCircuitEfficiency()" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${circuitEfficiency == null || circuitEfficiency == ''}">
	      		<div class="fieldBox col_33">
					<div class="label">线路月效率(趟)</div>
					<div class="field">
						<input name="circuitEfficiency"  id="circuitEfficiency" type="text" class="ui-textbox" onblur = "ckeckCircuitEfficiency()" value="" >
					</div>
				</div>
				</c:if>
				<c:if test="${Fare != null}">
					<div class="fieldBox col_33">
					<div class="label">单趟运价(元)</div>
					<div class="field">
						<input name="fare"  id="fare" type="text" class="ui-textbox" onblur = "checkfare()" value="" readonly="readonly">
					</div>
				</div>
				</c:if>
				<c:if test="${Fare == null || Fare == ''}">
					<div class="fieldBox col_33">
					<div class="label">单趟运价(元)</div>
					<div class="field">
						<input name="fare"  id="fare" type="text" class="ui-textbox" onblur = "checkfare()" value="" >
					</div>
				</div>
				</c:if>
				<!-- 卡车新增 audTkSpecialDyncPage.jsp -->
				<!-- <div id="tkDyncDiv" class="fieldBox col_100_auto"></div> -->
				
				<!-- 卡车新增区分盈利方式 audFarmMkMoneyTpeDyncPage.jsp -->
				<!-- <div id="tkMkMoneyDyncDiv" class="fieldBox col_100_auto"></div> -->
				
				
				<!-- 农机新增 audFarmSpecialDyncPage.jsp -->
				<!-- <div id="farmDyncDiv" class="fieldBox col_100_auto"></div> -->
				
				<!-- 农机新增区分盈利方式 audFarmMkMoneyTpeDyncPage.jsp -->
				<!-- <div id="mkMoneyDyncDiv" class="fieldBox col_100_auto"></div> -->
				
				
				<!-- 乘用车新增 audCarSpecialDyncPage.jsp -->
				<!-- <div id="carDyncDiv" class="fieldBox col_100_auto"></div> -->
				
				<!-- 乘用车新增区分工作方式 audCarWorkTypDyncPage.jsp -->
				<!-- <div id="workTypDyncDiv" class="fieldBox col_100_auto"></div> -->
				
			</div>
			<div class="btnsBox">
				<span id="saveBtn1" class="sq-button sq-button-round" onclick="saveMainData();">保存</span>
		    </div>
		    <div>
		   

		</form>
		<form id="formSet2">
			<div class="fieldset1 tabel_col clearFix">
				<div class="fieldBox col_100">
		            <div class="sqPanel">
		                <div class="sqPanel_head inL">
		                    <div class="btnsBox inLC">
		                        <span id="addBtn" class="sq-button sq-button-round" onclick="addRecord();">添加</span>
		                        <span id="delBtn" class="sq-button sq-button-round" onclick="delRecord();">删除</span>
		                    </div>
		                    <span>回访记录</span>
		                </div>
		                <div class="sqPanel_body">
		                    <div id="ligergrid_per" class="sq-grid"></div>
		                </div>
		            </div>
		        </div>
				<div class="btnsBox">
					<span id="saveBtn2" class="sq-button sq-button-round" onclick="saveVisitRecord();">保存</span>
			        <span class="sq-button sq-button-round" onclick="toFlowVisitAdd();">后续回访记录</span>
			        <input name="visitId" id="visitId" type="hidden" value="">
			    </div>
			</div>
		</form>
		<form id="formSet3">
			<div class="fieldset1 tabel_col clearFix">
				<div class="fieldBox col_100">
		            <div class="sqPanel">
		                <div class="sqPanel_head inL">
		                    <div class="btnsBox inLC">
		                        <span id="addBtn3" class="sq-button sq-button-round" onclick="toAddTable();">添加</span>
		                        <span id="delBtn3" class="sq-button sq-button-round" onclick="toDelTable();">删除</span>
		                    </div>
		                    <span>运营路线</span>
		                </div>
		             
		            </div>
		        </div>
				<table width="100%" class="data_Table" id="student_list">
					<thead>
					<%-- <c:if test="${size ==null }">
					<tr class="luxian header_title">
							<td width="3%"><input type="checkbox" name="checkAllT"
								id="checkALLT" value="1" /></td>
							<td width="50%">
								<div class="fieldBox col_100_auto">
									<div class="label">出发地</div>
									<div class="chufa field ">
									 <input name="rgnPrCd" id="rgnPrCd1" type="hidden" value="${kv.rgnPrCd }">
										<select  name="rgnPrCd1" id = "rgnPrCd1" validate="{required:true}" onchange='rgnProvChange(1,this.value,1)'  data-value=" "  >
                           		              <option value=" ">请选择</option>
                       					 </select>
                       					 <span id="rgnProvCdSpan" class="requiredSymbol" style="display: none">*</span>
                       					<input name="rgnCyCd" id="rgnCyCd1" type="hidden" value="${kv.rgnCyCd }" >
                       					 <select  name="rgnCyCd1"  id="rgnCyCd1"  data-value=" " >
                       					     <option value=" ">请选择</option>
                       					 </select>
									</div>
								</div>
								 
							</td>
							<td width="50%">
								<div class="fieldBox col_100_auto">
									<div class="label">目的地</div>
									<div class="mudi field ">
									<input name="rgnPrCds" id="rgnPrCds2" type="hidden" value="${kv.rgnPrCds }">
										<select  name="rgnPrCds2" id = "rgnPrCds2" validate="{required:true}" onchange='rgnProvChange(2,this.value,2)'   data-value=" "  >
                       					     <option value=" ">请选择</option>
                       					 </select>
                       					 <span id="rgnProvCdSpan" class="requiredSymbol" style="display: none">*</span>
                       					<input name="rgnCyCds" id="rgnCyCds2" type="hidden" value="${kv.rgnCyCds }">
                       					 <select  name="rgnCyCds2"  id = "rgnCyCds2"  data-value=" "  >
                           					<option value=" ">请选择</option>
                       					 </select>
									</div>
								</div>
							</td>
						</tr>
					</c:if>  --%>
					<c:if test="${size>0}">
					<c:forEach items="${audOpeLineList }" var="kv" varStatus="xu">
						<tr class="luxian header_title">
							<td width="3%"><input type="checkbox" name="checkAllT"
								id="checkALLT" value="${kv.id}" /></td>
							<td width="50%">
								<div class="fieldBox col_100_auto">
									<div class="label">出发地</div>
									<div class="chufa field ">
									<input name="size" id="size" type="hidden" value="${size}">
									 <input name="prCd" id="prCd${xu.count}" type="hidden" value="">
									 <input name="olId" id="olId${xu.count}" type="hidden" value="${kv.id}">
									 <input name="rgnPrCd " id="rgnPrCd${xu.count}" type="hidden" value="${kv.rgnPrCd}">
										<select name="rgnPrCd${xu.count}" id = "rgnPrCd${xu.count}" validate="{required:true}" onchange='rgnProvChange(${xu.count},this.value,1)'  data-value=" "  >
                       					     <option >${kv.rgnPrCdNm}</option>
                       					 </select>
                       					 <span id="rgnProvCdSpan" class="requiredSymbol" style="display: none">*</span>
                   						<input name="cyCd" id="cyCd${xu.count}" type="hidden" value="">
                       					<input name="rgnCyCd" id="rgnCyCd${xu.count}" type="hidden" value="${kv.rgnCyCd }">
                       					 <select  name="rgnCyCd${xu.count}"  id="rgnCyCd${xu.count}"  data-value="${kv.rgnCyCdNm}" onfocus="rgnProvfocus(${xu.count},this.value,1)" >
                       					      <option >${kv.rgnCyCdNm}</option>
                       					 </select>
									</div>
								</div>
								 
							</td>
							<td width="50%">
								<div class="fieldBox col_100_auto">
									<div class="label">目的地</div>
									<div class="mudi field ">
							 		<input name="prCds" id="prCds${xu.count}" type="hidden" value="">
									<input name="rgnPrCds" id="rgnPrCds${xu.count}" type="hidden" value="${kv.rgnPrCds}">
										<select  name="rgnPrCds${xu.count}" id = "rgnPrCds${xu.count}" validate="{required:true}" onchange='rgnProvChange(${xu.count},this.value,2)'   data-value=" "  >
                       					     <option>${kv.rgnPrCdsNm }</option>
                       					 </select>
                       					 <span id="rgnProvCdSpan" class="requiredSymbol" style="display: none">*</span>
                       					<input name="cyCds" id="cyCds${xu.count}" type="hidden" value="">
                       					<input name="rgnCyCds" id="rgnCyCds${xu.count}" type="hidden" value="${kv.rgnCyCds}">
                       					 <select  name="rgnCyCds${xu.count}"  id = "rgnCyCds${xu.count}" data-value="${kv.rgnCyCdsNm}" onfocus="rgnProvfocus(${xu.count},this.value,2)"  >
                       					     <option>${kv.rgnCyCdsNm}</option>
                       					 </select>
									</div>
								</div>
							</td>
						</tr>
						</c:forEach>
						</c:if> 
						</table>
				<div class="btnsBox">
					<span id="saveBtn3" class="sq-button sq-button-round" onclick="saveVisitRoute();">保存</span>
			        <input name="visitId" id="visitId" type="hidden" value="">
			       
			    </div>
			</div>
		</form>
	</div>

<script type="text/javascript">
var _projectId = '${projectId}';//项目ID
var _proIntId = '${proIntId}';//流程实例ID
var _prdTypCd = '${prdTypCd}';//项目产品类型
var _userId = '${userId}';//当前登录人ID
var _userNm = '${userNm}';//当前登录人名称
var _cstMgrId = '${cstMgrId}';//客户经理ID
var _cstMgrNm = '${cstMgrNm}';//客户经理名称
var DaiHou = '${DaiHou}';//贷后信审标识
var taskDefKey = '${taskDefKey}';//
var perGrid;
var mainData;//回访基本信息
var isDetail = '${isDetail}';
var buOrgCd = '${buOrgCd}';
var isSelfAnswer = '${isSelfAnswer}';
var IdentityCd = '${IdentityCd}';
var AddressCd = '${AddressCd}';
var IsExistTrunc = '${IsExistTrunc}';
var PickCardCd = '${PickCardCd}';
var StatusCd = '${StatusCd}';
var AgentCardStateCd = '${AgentCardStateCd}';
var EqmtAddressCd = '${EqmtAddressCd}';
var ProfitCd = '${ProfitCd}';
var MainGdsTypCd = '${MainGdsTypCd}';
var Goods = '${Goods}';
var GoodsRes = '${GoodsRes}';
var GdsStlWayCd = '${GdsStlWayCd}';
var Driver = '${Driver}';
var ProfitCd = '${ProfitCd}';
var circuitType = '${circuitType}';
var handingMode = '${handingMode}';
var circuitEfficiency = '${circuitEfficiency}';
var Fare = '${Fare}';
var SecondPayResCd = '${SecondPayResCd}';
var AffiliatedCompany = '${AffiliatedCompany}';
var GuraRl = '${GuraRl}';
var GuraRem = '${GuraRem}';
var GuraRl = '${GuraRl}';
var OtherInfo = '${OtherInfo}';
//var SecondPayResCd = '${SecondPayResCd}';


//信审员
var auditUsrKVListJSON = [];
<c:if test="${not empty auditUsrKVListJSON}"> auditUsrKVListJSON = ${auditUsrKVListJSON}; </c:if>
var auditRetVisitKVListJSON = [];
<c:if test="${not empty auditRetVisitKVListJSON}"> auditRetVisitKVListJSON = ${auditRetVisitKVListJSON}; </c:if>
var postLoanRiskKVListJSON = [];
<c:if test="${not empty postLoanRiskKVListJSON}"> postLoanRiskKVListJSON = ${postLoanRiskKVListJSON}; </c:if>
$(function(){
	//加载省
	initRegionProvSelectData();
	//checkDisabled();
	$('#formSet1').ligerForm({
        validate : true
	});
	$('#formSet2').ligerForm({
        validate : true
	});
	$('#formSet3').ligerForm({
        validate : true
	});
	$("#auditorNm").ligerComboBox({
        data: auditUsrKVListJSON,
        valueField: 'key',
		textField: 'value',
		autocomplete: function (e){
            filter_autoComboboxData(e.key, this);
            e.show();
        },
        onChangeValue: function (value) {
            if (this.findValueByText(value) == "") {//清除输入值
                liger.get("auditorNm").setValue("");
            }
        }
    });
	
	$("#returnVisitNm").ligerComboBox({
        data: auditRetVisitKVListJSON,
        valueField: 'key',
		textField: 'value',
		autocomplete: function (e){
            filter_autoComboboxData(e.key, this);
            e.show();
        },
        onChangeValue: function (value) {
            if (this.findValueByText(value) == "") {//清除输入值
                liger.get("returnVisitNm").setValue("");
            }
        }
    }); 
	
	$("#postLoanRiskNm").ligerComboBox({
        data: auditRetVisitKVListJSON,
        valueField: 'key',
		textField: 'value',
		autocomplete: function (e){
            filter_autoComboboxData(e.key, this);
            e.show();
        },
        onChangeValue: function (value) {
            if (this.findValueByText(value) == "") {//清除输入值
                liger.get("postLoanRiskNm").setValue("");
            }
        }
    });
	initMainData();
	
	disableFixedFiled();
	disabledVehVisitInfo();
	disabledSchemeVisitInfo();
	if(isDetail==1){
		$("#saveBtn1").remove();
		$("#saveBtn2").remove();
		$("#addBtn").remove();
		$("#delBtn").remove();
		$("#isDetail").show();
		$("#delBtn3").remove();
		$("#addBtn3").remove();
		$("#saveBtn3").remove();
	}
	
});

//承租人回访 根据是否本人接听刷新
function refleshTenantVisitDyncDiv(){
	var _isSelfAnswer = $("#isSelfAnswer").val();
	if(!_isSelfAnswer) return;
	var _bizTypCd = "SYS0021";
	var _bizCd = _isSelfAnswer;
	var _url_1 = '<%=path%>/audit/audReturnVisit/toTenantVisitDyncFldPage.do';
	$("#tenantVisitDyncDiv").load(_url_1,{bizTypCd:_bizTypCd, bizCd:_bizCd},function(responseText,textStatus){
		$("#formSet1").check_ligerFormEditor();
		disabledTenantVisitInfo();//禁用
		if(mainData){
			//设置承租人回访动态字段初始信息
			setTenantVisitDyncInfo();
		}
	});
}

//根据产品类型刷新
<%-- function refleshByPrdTypCd(){
	if(!_prdTypCd || _prdTypCd=="")return;
	var _bizTypCd = "PRD0001";
	var _bizCd = _prdTypCd.substring(0,3);
	//车辆确认
	var _url_1 = '<%=path%>/audit/audReturnVisit/toVehConfirmDyncFldPage.do';
	$("#vehDyncDiv").load(_url_1,{bizTypCd:_bizTypCd, bizCd:_bizCd},function(responseText,textStatus){
		$("#formSet1").check_ligerFormEditor();
		disabledVehVisitInfo();//禁用
		if(mainData){
			//设置车辆确认动态字段初始信息
			setVehDyncInfo();
		}
	});
	//融资方案
	var _url_2 = '<%=path%>/audit/audReturnVisit/toSchemeDyncFldPage.do';
	$("#schemeDyncDiv").load(_url_2,{bizTypCd:_bizTypCd, bizCd:_bizCd},function(responseText,textStatus){
		$("#formSet1").check_ligerFormEditor();
		disabledSchemeVisitInfo();//禁用
		if(mainData){
			//设置融资方案动态字段初始信息
			setSchemeDyncInfo();
		}
	});
	//农机新增
	/*var _url_3 = '<%=path%>/audit/audReturnVisit/toFarmDyncFldPage.do';
	$("#farmDyncDiv").load(_url_3,{bizTypCd:_bizTypCd, bizCd:_bizCd },function(responseText,textStatus){
		$("#formSet1").check_ligerFormEditor();
		disabledFarmSpecial();//禁用
		if(mainData){
			//设置农机新增动态字段初始信息
			setFarmDyncInfo();
		}
	}); */
	//乘用车新增
	/*var _url_4 = '<%=path%>/audit/audReturnVisit/toCarDyncFldPage.do';
	$("#carDyncDiv").load(_url_4,{bizTypCd:_bizTypCd, bizCd:_bizCd },function(responseText,textStatus){
		$("#formSet1").check_ligerFormEditor();
		disabledCarSpecial();//禁用
		if(mainData){
			//设置乘用车新增动态字段初始信息
			setCarDyncInfo();
		}
	}); */
	//卡车新增
	/*var _url_5 = '<%=path%>/audit/audReturnVisit/toTkDyncFldPage.do';
	$("#tkDyncDiv").load(_url_5,{bizTypCd:_bizTypCd, bizCd:_bizCd },function(responseText,textStatus){
		$("#formSet1").check_ligerFormEditor();
		disabledTkSpecial();//禁用
		if(mainData){
			//设置卡车新增动态字段初始信息
			setTkDyncInfo();
		}
	}); */
} --%>
//卡车根据盈利方式刷新
<%-- function refreshByTkMkMoneyTyp(){
	var _profitCd = $("#profitCd_tk").val();
	if(!_profitCd)return;
	var _bizTypCd = "AUD0029";
	var _bizCd = _profitCd;
	var _url_1 = '<%=path%>/audit/audReturnVisit/toTkMkMoneyDyncFldPage.do';
	$("#tkMkMoneyDyncDiv").load(_url_1,{bizTypCd:_bizTypCd, bizCd:_bizCd},function(responseText,textStatus){
		$("#formSet1").check_ligerFormEditor();
		disabledTkMkMoneyTpe();//禁用
		if(mainData){
			//设置卡车新增动态字段初始信息
			setTkMkMoneyDyncInfo();
		}
	});
} --%>
//农机根据盈利方式刷新
<%-- function refreshByMkMoneyTyp(){
	var _profitCd = $("#profitCd").val();
	if(!_profitCd)return;
	var _bizTypCd = "AUD0029";
	var _bizCd = _profitCd;
	var _url_1 = '<%=path%>/audit/audReturnVisit/toMkMoneyDyncFldPage.do';
	$("#mkMoneyDyncDiv").load(_url_1,{bizTypCd:_bizTypCd, bizCd:_bizCd},function(responseText,textStatus){
		$("#formSet1").check_ligerFormEditor();
		disabledFarmMkMoneyTpe();//禁用
		if(mainData){
			//设置农机新增动态字段初始信息
			setMkMoneyDyncInfo();
		}
	});
} --%>
//乘用车根据工作方式刷新
<%-- function refreshByWorkTyp(){
	var _workTypeCd = $("#workTypeCd").val();
	if(!_workTypeCd)return;
	var _bizTypCd = "AUD0030";
	var _bizCd = _workTypeCd;
	var _url_1 = '<%=path%>/audit/audReturnVisit/toWorkTypDyncFldPage.do';
	$("#workTypDyncDiv").load(_url_1,{bizTypCd:_bizTypCd, bizCd:_bizCd},function(responseText,textStatus){
		$("#formSet1").check_ligerFormEditor();
		disabledCarWorkTyp();//禁用
		if(mainData){
			//设置乘用车新增动态字段初始信息
			setWorkTypDyncInfo();
		}
	});
} --%>

//保存回访信息(包含承租人回访记录)
function saveMainData(){
	var form = liger.get("formSet1");
    if (!form.valid()) {
    	$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO , SQ_type: "warning" });
        return false;
    }
    var data = form.getData();
    data["projectId"] = _projectId;//项目ID
    data["proIntId"] = _proIntId;//流程实例ID
    
    //承租人回访记录信息
    data["accountManagerId"] = $("#accountManagerId").val();//客户经理ID
    data["accountManagerNm"] = $("#accountManagerNm").val();//客户经理NM
    data["personnelName"] = $("#personnelName").val();//承租人姓名=回访人员姓名
    
    var auditorNmObj = liger.get("auditorNm");
    data["auditorId"] = auditorNmObj.getValue();//信审员ID
    //data["auditorNm"] = auditorNmObj.getText();//信审员NM
  //  data["DaiHou"] = DaiHou;//贷后信审标识
  	var returnVisitNmObj = liger.get("returnVisitNm");
    data["returnVisitId"] = returnVisitNmObj.getValue();//信审员ID
    var id = $("#visitId").val();
    var url = '<%=path%>/audit/audReturnVisit/add.do?DaiHou='+DaiHou;
    if(id != ""){
    	url = '<%=path%>/audit/audReturnVisit/modify.do?DaiHou='+DaiHou;
    	data["id"]= id;
    }
    
    var wait_dialog;
    $.ajax({
		type: 'post',
		dataType:'json',
		data:data,
		url: url,
		beforeSend: function(){
	          wait_dialog=$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
	     },
		success:function(msg){
			 wait_dialog.close();
				 if(msg.success == 1){
					 if(msg.data){
						 $("#visitId").val(msg.data);
					 }
				 top.$.ligerDialog.SQalert({content: msg.info,SQ_type: "success"});
				    //获取选中行的id
					 var TAB=top.mainApp.parentTab;
		             var currentTabid=TAB.getSelectedTabItemID(); 
		             var currFrameElement=top.$("#"+currentTabid).get(0);
					 var callback=currFrameElement.W2W.callback;
					 callback();
	          	 	// top.tab.removeTabItem(currentTabid); 
				 	// grid.reload();
	          	 	// parent.$("#searchBtn").click();//刷新父页面
	          	 	// top.tab.removeTabItem('tab_prj_prd_dtl_info'+dtlId);
	          	 	
					parent.$(".l-dialog,.l-window-mask").css("display","none"); 
			 }else{
				 top.$.ligerDialog.SQalert({content: msg.info,SQ_type: "error"});
			 }
			 
		}
	});
}

//初始化回访基本信息(+承租人回访记录)
function initMainData(){
	if(!_projectId){
		//refleshByPrdTypCd();//根据产品刷新字段
		initPerGrid();//初始化回访记录列表
		return;
	}

   	var _url = '<%=path%>/audit/audReturnVisit/getByProjectId.do';
	$.ajax({
   		type: 'get',
   		dataType:'json',
   		data:{
   			projectId:_projectId
   		},
   		url: _url,
   		success:function(msg){
			if(msg.success == 1){
				setMainData(msg.data);
   				mainData = msg.data;
   				$("#visitId").val(msg.data.id);
   				setVehDyncInfo();
   				setSchemeDyncInfo();
   				//2018-3-19 by yaoxiurong 设置默认值
   				if(!msg.data.id){
					setDefalutData();
   				}
			}else{
				//数据为null说明没有数据,不是错误
				//2018-3-19 by yaoxiurong 设置默认值
				setDefalutData();
			}
			//refleshByPrdTypCd();//根据产品刷新字段
			initPerGrid();//初始化回访记录列表
		}
	});
	if(DaiHou == "1"){
		$("#xsy1").hide();
		$("#xsy2").hide();
		$("#xsy3").hide();
		$("#xsy4").hide();
	}
}
function setMainData(data){
	$("#certNo").val('${certNo}');
	$("#postAddr").val('${postAddr}');
	$("#certNo").attr("readonly","readonly");
	$("#postAddr").attr("readonly","readonly");
	$("#visitId").val(data.id);
	var form = liger.get("formSet1");
	form.setData({
		pickCardCd:data.pickCardCd,
		statusCd:data.statusCd,
	});
	$("#times").val(data.times);
	$("#equipmentNum").val(data.equipmentNum);
	$("#mainMarketPrice").val(data.mainMarketPrice);
	$("#cardDate").val(data.cardDate);
	/* if(data.cardDate){
		var date = new Date(data.cardDate);
		var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		$("#cardDate").val(dateStr);
	} */
	$("#itemPay").val(data.itemPay);
	$("#leaseTerm").val(data.leaseTerm);
	$("#guraRl").val(data.guraRl);
	$("#guraRem").val(data.guraRem);
	$("#ugRl").val(data.ugRl);
	$("#ugRem").val(data.ugRem);
	//承租人回访记录数据
	var tenantVisitRecordVO = data.tenantVisitRecordVO;
	if(tenantVisitRecordVO){
		form.setData({
			identityCd:tenantVisitRecordVO.identityCd,
			addressCd:tenantVisitRecordVO.addressCd,
			//auditorNm:tenantVisitRecordVO.auditorId,
		});
		if(DaiHou == "1"){
			$("#auditorNm").ligerGetComboBoxManager().selectValue(tenantVisitRecordVO.lastAuditorId);
		}else{
			$("#auditorNm").ligerGetComboBoxManager().selectValue(tenantVisitRecordVO.auditorId);
		}
		$("#returnVisitNm").ligerGetComboBoxManager().selectValue(data.returnVisitId);
		if(tenantVisitRecordVO.visitTm){
			var date = new Date(tenantVisitRecordVO.visitTm);
			var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
			$("#visitTm").val(dateStr);
		}
		//$("#auditorNmD").html(tenantVisitRecordVO.auditorNm);
		$("#phone").val(tenantVisitRecordVO.phone);
		$("#address").val(tenantVisitRecordVO.address);
		if(tenantVisitRecordVO.isSelfAnswer != null){
			form.setData({
				isSelfAnswer:tenantVisitRecordVO.isSelfAnswer.toString(),
			});
		}
		refleshTenantVisitDyncDiv();//手动调用,承租人回访是否本人接听下拉数据改变刷新动态字段
	}

   
	//车辆运营
	if(data.audVisitTkVO){
		var audVisitTkVO = data.audVisitTkVO;
		form.setData({
			profitCd:audVisitTkVO.profitCd,
			bizExp:audVisitTkVO.bizExp,
			goodsRes:audVisitTkVO.goodsRes,
			gdsStlWayCd:audVisitTkVO.gdsStlWayCd,
			driver:audVisitTkVO.driver,
			secondPayResCd:audVisitTkVO.secondPayResCd,
			mainGdsTypCd:audVisitTkVO.mainGdsTypCd,
			circuitType:data.circuitType,
			cargoWeigth:data.cargoWeigth,
			cargoVomule:data.cargoVomule,
			handingMode:data.handingMode,
			circuitEfficiency:data.circuitEfficiency,
			fare:data.fare
			
			
		});
		
		$("#selfTkDesc").val(audVisitTkVO.selfTkDesc);
		/* $("#circuitType").val(audVisitTkVO.circuitType);
		$("#cargoWeigth").val(audVisitTkVO.cargoWeigth);
		$("#cargoVomule").val(audVisitTkVO.cargoVomule);
		$("#handingMode").val(audVisitTkVO.handingMode);
		$("#circuitEfficiency").val(audVisitTkVO.circuitEfficiency);
		$("#fare").val(audVisitTkVO.fare); */
		$("#route").val(audVisitTkVO.route);
		$("#otherInfo").val(audVisitTkVO.otherInfo);
		if(audVisitTkVO.netIncome){
			$("#netIncome").val(audVisitTkVO.netIncome/100);
		}
		if(audVisitTkVO.highEasonCharterdBus){
			$("#highEasonCharterdBus").val(audVisitTkVO.highEasonCharterdBus/100);
		}
		if(audVisitTkVO.peakEasonCharterdBus){
			$("#peakEasonCharterdBus").val(audVisitTkVO.peakEasonCharterdBus/100);
		}
		$("#otherFeePct").val(audVisitTkVO.otherFeePct);
		if(audVisitTkVO.grossIncome){
			$("#grossIncome").val(audVisitTkVO.grossIncome/100);
		}
		getTripGoodsSubCd();
	}
}
//主货物大类change事件
function getTripGoodsSubCd(){
	var _PCode = $("#mainGdsTypCd").val();//获取主货物大类的value
	if(!_PCode) return;
	$.ajax({
		type: 'post',
		dataType:'json',
		data:{PCode:_PCode},
		/* 获取货品下拉框的数据 */
		url: '<%=path%>/audit/audCreditInfo/getGoodsTypJSON.do',
		success:function(msg){
			if(msg.success == 1){
				//主运输货物
				var goods = $("#goods");
				if(goods.length){
					$("#goods").empty();
					$("#goods").append("<option value=''>请选择</option>");
					$.each(msg.data,function(index,obj) {
						var option = "<option value='"+obj.key+"'>"+obj.value+"</option>";
							$(option).appendTo("#goods");
							liger.get("goods").setSelect();
					});
					$("#goods").add_ligerFormEditor();
				}
				SetIframe_height();
				if(mainData && mainData.audVisitTkVO){
					var form = liger.get("formSet1");
					form.setData({
						goods:mainData.audVisitTkVO.goods,
					});
				}
			}else{
				top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			}
		}
	});
}
//设置承租人回访动态字段初始信息
function setTenantVisitDyncInfo(){
	if(!mainData) return;
	var tenantVisitRecordVO = mainData.tenantVisitRecordVO;
	if(tenantVisitRecordVO){
		$("#representativeName").val(tenantVisitRecordVO.representativeName);
		$("#representativePhone").val(tenantVisitRecordVO.representativePhone);
		var form = liger.get("formSet1");
		form.setData({
			relationshipCd:tenantVisitRecordVO.relationshipCd,
		});
	}
}
//设置车辆确认动态字段初始信息
function setVehDyncInfo(){
	if(!mainData) return;
	var form = liger.get("formSet1");
	if(mainData.isExistTrunc != null){
		form.setData({
			isExistTrunc:mainData.isExistTrunc.toString(),
		});
	}
	$("#motorHorsepower").val(mainData.motorHorsepower);
	$("#containerSize").val(mainData.containerSize);
	$("#truncStandard").val(mainData.truncStandard);
	$("#truncConfig").val(mainData.truncConfig);
	$("#emissionStandard").val(mainData.emissionStandard);
	$("#gearbox").val(mainData.gearbox);
	$("#carBrandCd").val(mainData.carBrandCd);
	$("#holdSpace").val(mainData.holdSpace);
	$("#batDeg").val(mainData.batDeg);
	$("#endMileage").val(mainData.endMileage);
	$("#equipmentName").val(mainData.equipmentName);
	$("#yeayAmt").val(mainData.yeayAmt);
	$("#usefulLife").val(mainData.usefulLife);
	$("#mileage").val(mainData.mileage);
	$("#otherConfig").val(mainData.otherConfig);
	$("#seating").val(mainData.seating);
	$("#busLen").val(mainData.busLen);
	$("#braking").val(mainData.braking);
	form.setData({
		powerCd:mainData.powerCd,
	});
	$("#potionCfg").val(mainData.potionCfg);
}
//设置融资方案动态字段初始信息
function setSchemeDyncInfo(){
	if(!mainData) return;
	var form = liger.get("formSet1");
	form.setData({
		agentCardStateCd:mainData.agentCardStateCd,
		eqmtAddressCd:mainData.eqmtAddressCd,
		vehiclesDoorCd:mainData.vehiclesDoorCd,
	});
	$("#truncMarketPrice").val(mainData.truncMarketPrice);
	$("#monthRepayment").val(mainData.monthRepayment);
	$("#affiliatedCompany").val(mainData.affiliatedCompany);
	$("#subsidyAmt").val(mainData.subsidyAmt);
	if(mainData.pickCardTm){
		var date = new Date(mainData.pickCardTm);
		var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		$("#pickCardTm").val(dateStr);
	}
	$("#dealerAmt").val(mainData.dealerAmt);
	$("#firstPayPct").val(mainData.firstPayPct);
	$("#financingAmt").val(mainData.financingAmt);
	$("#smallRepaymentAmt").val(mainData.smallRepaymentAmt);
	$("#largeRepaymentAmt").val(mainData.largeRepaymentAmt);
}

//TODO 设置卡车新增字段信息
function setTkDyncInfo(){
	if(!mainData || !mainData.audVisitTkVO) return;
	var audVisitTkVO = mainData.audVisitTkVO;
	var form = liger.get("formSet1");
	form.setData({
		profitCd_tk:audVisitTkVO.profitCd,
	});
	refreshByTkMkMoneyTyp();//手动调用 卡车根据盈利方式刷新
}
//TODO 设置卡车根据盈利方式刷新动态字段信息
function setTkMkMoneyDyncInfo(){
	if(!mainData || !mainData.audVisitTkVO) return;
	var audVisitTkVO = mainData.audVisitTkVO;
	$("#cmpDesc").val(audVisitTkVO.cmpDesc);
	$("#biz").val(audVisitTkVO.biz);
	$("#bizExp").val(audVisitTkVO.bizExp);
	$("#selfTkDesc").val(audVisitTkVO.selfTkDesc);
	$("#tkUseDesc").val(audVisitTkVO.tkUseDesc);
	$("#transRange").val(audVisitTkVO.transRange);
	$("#income").val(audVisitTkVO.income);
	$("#otherInfo_tk").val(audVisitTkVO.otherInfo);
	$("#goods").val(audVisitTkVO.goods);
	$("#route").val(audVisitTkVO.route);
	$("#toGdsRes").val(audVisitTkVO.toGdsRes);
	$("#toGds").val(audVisitTkVO.toGds);
	$("#toStlWay").val(audVisitTkVO.toStlWay);
	$("#cmGdsRes").val(audVisitTkVO.cmGdsRes);
	$("#cmGds").val(audVisitTkVO.cmGds);
	$("#cmStlWay").val(audVisitTkVO.cmStlWay);
	$("#driver").val(audVisitTkVO.driver);
	$("#transTms").val(audVisitTkVO.transTms);
	$("#transFee").val(audVisitTkVO.transFee);
	$("#purInc").val(audVisitTkVO.purInc);
/* 	$("#circuitType").val(audVisitTkVO.circuitType);
	$("#cargoWeigth").val(audVisitTkVO.cargoWeigth);
	$("#cargoVomule").val(audVisitTkVO.cargoVomule);
	$("#handingMode").val(audVisitTkVO.handingMode);
	$("#circuitEfficiency").val(audVisitTkVO.circuitEfficiency);
	$("#fare").val(audVisitTkVO.fare); */
	
}
//设置农机新增动态字段初始信息
function setFarmDyncInfo(){
	if(!mainData || !mainData.audVisitAgriculturalVO) return;
	//主数据中农机字段
	var form = liger.get("formSet1");
	$("#yearNetAmt").val(mainData.yearNetAmt);
	$("#loanPrjAmt").val(mainData.loanPrjAmt);
	$("#yearCostAmt").val(mainData.yearCostAmt);
	$("#yearDominateAmt").val(mainData.yearDominateAmt);
	if(mainData.isPress != null){
		form.setData({
			isPress:mainData.isPress.toString(),
		});
	}
	//========================================
	var audVisitAgriculturalVO = mainData.audVisitAgriculturalVO;
	form.setData({
		profitCd:audVisitAgriculturalVO.profitCd,
	});
	$("#ownLand").val(audVisitAgriculturalVO.ownLand);
	$("#contractLand").val(audVisitAgriculturalVO.contractLand);
	$("#contractPrice").val(audVisitAgriculturalVO.contractPrice);
	$("#growCrops").val(audVisitAgriculturalVO.growCrops);
	$("#growthPeriod").val(audVisitAgriculturalVO.growthPeriod);
	$("#yield").val(audVisitAgriculturalVO.yield);
	$("#salePrice").val(audVisitAgriculturalVO.salePrice);
	$("#perMuGrossAmt").val(audVisitAgriculturalVO.perMuGrossAmt);
	$("#perMuInvestmentAmt").val(audVisitAgriculturalVO.perMuInvestmentAmt);
	$("#pemMuNetAmt").val(audVisitAgriculturalVO.pemMuNetAmt);
	$("#settlementPeriod").val(audVisitAgriculturalVO.settlementPeriod);
	$("#experience").val(audVisitAgriculturalVO.experience);
	$("#workType").val(audVisitAgriculturalVO.workType);
	$("#workArea").val(audVisitAgriculturalVO.workArea);
	if(audVisitAgriculturalVO.workTime){
		var date = new Date(audVisitAgriculturalVO.workTime);
		var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		$("#workTime").val(dateStr);
	}
	$("#settlement").val(audVisitAgriculturalVO.settlement);
	$("#netIncome").val(audVisitAgriculturalVO.netIncome);
	$("#netIncome2").val(audVisitAgriculturalVO.netIncome2);
	refreshByMkMoneyTyp();//手动调用,农机盈利方式改变,刷新动态字段
}
//设置农机新增动态字段初始信息
function setMkMoneyDyncInfo(){
	if(!mainData || !mainData.audVisitAgriculturalVO) return;
	var audVisitAgriculturalVO = mainData.audVisitAgriculturalVO;
	$("#otherSourcesIncome").val(audVisitAgriculturalVO.otherSourcesIncome);
	$("#newWorkType").val(audVisitAgriculturalVO.newWorkType);
	$("#newWorkArea").val(audVisitAgriculturalVO.newWorkArea);
	if(audVisitAgriculturalVO.newWorkTime){
		var date = new Date(audVisitAgriculturalVO.newWorkTime);
		var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		$("#newWorkTime").val(dateStr);
	}
	$("#newSettlement").val(audVisitAgriculturalVO.newSettlement);
	$("#driverInfo").val(audVisitAgriculturalVO.driverInfo);
	$("#sumIncome").val(audVisitAgriculturalVO.sumIncome);
}
//设置乘用车新增动态字段初始信息
function setCarDyncInfo(){
	if(!mainData || !mainData.audVisitCarVO) return;
	var audVisitCarVO = mainData.audVisitCarVO;
	var form = liger.get("formSet1");
	form.setData({
		workTypeCd:audVisitCarVO.workTypeCd,
	});
	refreshByWorkTyp();//手动调用,乘用车工作方式下拉值改变,刷新动态字段
}
function setWorkTypDyncInfo(){
	if(!mainData || !mainData.audVisitCarVO) return;
	var audVisitCarVO = mainData.audVisitCarVO;
	var form = liger.get("formSet1");
	form.setData({
		companyAddressCd:audVisitCarVO.companyAddressCd,
		postCd:audVisitCarVO.postCd,
		salaryWayCd:audVisitCarVO.salaryWayCd,
		downPaymentCd:audVisitCarVO.downPaymentCd,
	});
	if(audVisitCarVO.isSocialSecurity != null){
		form.setData({
			isSocialSecurity:audVisitCarVO.isSocialSecurity.toString(),
		});
	}
	$("#companyName").val(audVisitCarVO.companyName);
	$("#workYeays").val(audVisitCarVO.workYeays);
	$("#work").val(audVisitCarVO.work);
	$("#monthIncome").val(audVisitCarVO.monthIncome);
	$("#carUse").val(audVisitCarVO.carUse);
	$("#secondRepayment").val(audVisitCarVO.secondRepayment);
	$("#otherDebt").val(audVisitCarVO.otherDebt);
	$("#spouseInfo").val(audVisitCarVO.spouseInfo);
	$("#otherInfo").val(audVisitCarVO.otherInfo);
	$("#companyDesc").val(audVisitCarVO.companyDesc);
	$("#business").val(audVisitCarVO.business);
	$("#operatingPeriod").val(audVisitCarVO.operatingPeriod);
	$("#companyIncome").val(audVisitCarVO.companyIncome);
	$("#sourceIncome").val(audVisitCarVO.sourceIncome);
}


//初始化担保人/紧急联系人回访记录List
function initRecordData(){
	
}

//回访人员类型
var personnelTypeCdListJSON = [];
<c:if test="${not empty personnelTypeCdListJSON}"> personnelTypeCdListJSON = ${personnelTypeCdListJSON}; </c:if>
//是否
var yesOrNoTypeCdListJSON = [];
<c:if test="${not empty yesOrNoTypeCdListJSON}"> yesOrNoTypeCdListJSON = ${yesOrNoTypeCdListJSON}; </c:if>
//回访信息确认(一致/不一致)
var returnVisitConfirmCdListJSON = [];
<c:if test="${not empty returnVisitConfirmCdListJSON}"> returnVisitConfirmCdListJSON = ${returnVisitConfirmCdListJSON}; </c:if>
//与承租人关系
var relationshipCdListJSON = [];
<c:if test="${not empty relationshipCdListJSON}"> relationshipCdListJSON = ${relationshipCdListJSON}; </c:if>

function initPerGrid(){
	var visitId = $("#visitId").val();
	_url = '<%=path%>/audit/audVisitRecord/initListPost.do';
	/* if(!visitId || visitId==""){
		_url = "";
	} */
	perGrid = $("#ligergrid_per").ligerGrid({
        url: _url,
        method: 'get',
        parms:{
        	visitId:visitId,
        	visitTypeCd:AuditConstant.AUD_VISIT_TYP_CD_GUART
        },
        columns: [
			{display: '人员类型', name: 'personnelTypeCd', width: 80,
			    editor: {
			        type: 'select',
			        data: personnelTypeCdListJSON,
			        valueField: 'key',
			        textField: 'value'
			    },
			    valueField: 'personnelTypeCd',
			    textField: 'personnelTypeCdNm',
			    render: function (item) {
			        return item.personnelTypeCdNm;
			    }
			},
			{display: '人员姓名', name: 'personnelName', width: 80, editor: {type: 'text'} },
			{display: '回访电话', name: 'phone', width: 100, editor: {type: 'text'} },
			{display: '客户经理ID', name: 'accountManagerId', width: 0, editor: {readonly: true},hide:true },
			{display: '客户经理', name: 'accountManagerNm', width: 80, editor: {readonly: true}},
			{display: '信审员', name: 'auditorId', width: 80,
			    editor: {
			        type: 'combobox',
			        data: auditUsrKVListJSON,
			        initData: auditUsrKVListJSON,
			        valueField: 'key',
			        textField: 'value',
			        autocomplete: function (e){
			            filter_autoComboboxData(e.key, this);
			            e.show();
			        },
			        onChangeValue: function (value) {
			            if (this.findValueByText(value) == "") {//清除输入值
			                this.setValue("");
			            }
			        },
			    },
			    valueField: 'auditorId',
			    textField: 'auditorNm',
			    render: function (item) {
			        return item.auditorNm;
			    }
			},
			{display: '回访专员', name: 'returnVisitId', width: 80,
			    editor: {
			        type: 'combobox',
			        data: auditRetVisitKVListJSON,
			        initData: auditRetVisitKVListJSON,
			        valueField: 'key',
			        textField: 'value',
			        autocomplete: function (e){
			            filter_autoComboboxData(e.key, this);
			            e.show();
			        },
			        onChangeValue: function (value) {
			            if (this.findValueByText(value) == "") {//清除输入值
			                this.setValue("");
			            }
			        },
			    },
			    valueField: 'returnVisitId',
			    textField: 'returnVisitNm',
			    render: function (item) {
			        return item.returnVisitNm;
			    }
			},
			{display: '贷后风险核查', name: 'postLoanRiskCd', width: 80,
			    editor: {
			        type: 'combobox',
			        data: postLoanRiskKVListJSON,
			        initData: postLoanRiskKVListJSON,
			        valueField: 'key',
			        textField: 'value',
			        autocomplete: function (e){
			            filter_autoComboboxData(e.key, this);
			            e.show();
			        },
			        onChangeValue: function (value) {
			            if (this.findValueByText(value) == "") {//清除输入值
			                this.setValue("");
			            }
			        },
			    },
			    valueField: 'postLoanRiskCd',
			    textField: 'postLoanRiskNm',
			    render: function (item) {
			        return item.postLoanRiskNm;
			    }
			},
			/* {display: '信审员ID', name: 'auditorId', width: 80, editor: {readonly: true},hide:true },
            {display: '信审员', name: 'auditorNm', width: 80, editor: {readonly: true} }, */
			{
                display: '回访时间', name: 'visitTm',
                editor: {type: 'date'},
                render: function (rowdata, index, value) {
                    var result = '';
                    if (StringUtils.isEmpty(value)) return result;
                    var date = new Date(value);
                    result = date.Format('yyyy-MM-dd');
                    return result;
                }
            },
            {display: '是否本人接听', name: 'isSelfAnswer', width: 80,
                editor: {
                    type: 'select',
                    data: yesOrNoTypeCdListJSON,
                    valueField: 'key',
                    textField: 'value'
                },
                valueField: 'isSelfAnswer',
                textField: 'isSelfAnswerNm',
                render: function (item) {
                    return item.isSelfAnswerNm;
                }
            },
            {display: '身份信息', name: 'identityCd', width: 80,
                editor: {
                    type: 'select',
                    data: returnVisitConfirmCdListJSON,
                    valueField: 'key',
                    textField: 'value'
                },
                valueField: 'identityCd',
                textField: 'identityCdNm',
                render: function (item) {
                    return item.identityCdNm;
                }
            },
            {display: '家庭住址', name: 'addressCd', width: 80,
                editor: {
                    type: 'select',
                    data: returnVisitConfirmCdListJSON,
                    valueField: 'key',
                    textField: 'value'
                },
                valueField: 'addressCd',
                textField: 'addressCdNm',
                render: function (item) {
                    return item.addressCdNm;
                }
            },
            {display: '另述住址', name: 'address', width: 100, editor: {type: 'text'} },
            {display: '与承租人关系', name: 'relationshipCd', width: 80,
                editor: {
                    type: 'select',
                    data: relationshipCdListJSON,
                    valueField: 'key',
                    textField: 'value'
                },
                valueField: 'relationshipCd',
                textField: 'relationshipCdNm',
                render: function (item) {
                    return item.relationshipCdNm;
                }
            },
            {display: '是否知晓承租人购车', name: 'isKnowInfo', width: 120,
                editor: {
                    type: 'select',
                    data: yesOrNoTypeCdListJSON,
                    valueField: 'key',
                    textField: 'value'
                },
                valueField: 'isKnowInfo',
                textField: 'isKnowInfoNm',
                render: function (item) {
                    return item.isKnowInfoNm;
                }
            },
            {display: '从事工作', name: 'job', width: 80, editor: {type: 'text'} },
            {display: '是否愿意协助我司联系/是否愿意承担连带责任', name: 'isHelpConact', width: 250,
                editor: {
                    type: 'select',
                    data: yesOrNoTypeCdListJSON,
                    valueField: 'key',
                    textField: 'value'
                },
                valueField: 'isHelpConact',
                textField: 'isHelpConactNm',
                render: function (item) {
                    return item.isHelpConactNm;
                }
            },
            {display: '其他附加信息', name: 'additionalInfo', width: 80, editor: {type: 'text'} },
        ],
        onBeforeSubmitEdit: function (e) {
        },
        onBeforeEdit: function (e) {
        	if(isDetail==1){
        		e.column.editor.readonly=true;
        	}
        	var crtUsrIdData= e.record.crtUsrId;
        	if(null != crtUsrIdData && ''!=crtUsrIdData && crtUsrIdData != _userId){
            	e.column.editor.readonly = true;
        	}else{
            	e.column.editor.readonly = false;
        	}
        },
        pageSize:100,
        usePagerOnLessPagesize: false,
        root: 'rows',
        record: 'total',
        hideLoadButton: true,
        width: '100%',
        height: 300,
        heightDiff: -2,
        enabledEdit: true,
        isScroll: false,
        checkbox: true,
        rownumbers: true,
        allowUnSelectRow: true,
        alternatingRow: false,
        enabledSort:false
    });
	
	SET_popupIframeHeight();
}
function initRouteGird (){
	var visitId = $("#visitId").val();
	RouteGrid = $("#ligergrid_Route").ligerGrid({
		
	})
}
function addRecord(){
	perGrid.addRow({
    	personnelTypeCd: '',
    	personnelName: '',
    	phone: '',
    	accountManagerId:_cstMgrId,
    	accountManagerNm:_cstMgrNm,
    	auditorId:'',
    	returnVisitId:'',
    	/* auditorId:_userId,
    	auditorNm:_userNm, */
    	visitTm: '',
    	isSelfAnswer: '',
    	postLoanRiskCd: '',
    	
    	identityCd: '',
    	addressCd: '',
    	address: '',
    	relationshipCd: '',
    	isKnowInfo: '',
    	job: '',
    	isHelpConact: '',
    	additionalInfo: '',
    });
}
function delRecord(){
	var selectedRows = perGrid.getSelectedRows();
	if(selectedRows.length == 0){
		$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_SELECT_MORE_ROW, SQ_type: "warring"});
		return;
	}
	top.$.ligerDialog.confirm("确认删除选中项吗?", function (flag) {
		if(!flag){
			return;
		}else{
			var _ids = [];
			for (var i = 0; i < selectedRows.length; i++) {
				if(!selectedRows[i].id){
					perGrid.deleteRow(selectedRows[i]); 
				}else{
					_ids.push(selectedRows[i].id);
				}
			}
			if(_ids.length==0)return;
			//请求后台批量删除
			var wait_dialog;
			$.ajax({
				type: 'post',
				dataType:'json',
				data:{ids:JSON.stringify(_ids)},
				url: '<%=path%>/audit/audVisitRecord/removeByIdsPost.do',
				beforeSend: function(){
			          wait_dialog=top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
			     },
				success:function(msg){
					wait_dialog.close();
					 if(msg.success == 1){
						 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
						 var visitId = $("#visitId").val();
						 perGrid.setParm("visitId",visitId);
						 perGrid.reload();
					 }else{
						 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
					 }
				}
			});
		}
	});
    //perGrid.deleteSelectedRow();
}

//保存运营路线
function saveVisitRoute(){
    var form = liger.get("formSet3");
    if (!form.valid()) {
        $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO , SQ_type: "warning" });
        return false;
    }
    var id = $("#visitId").val();
    var data = [];
    var data_v = [];
   	 var parms = {};
   	 var parms_v = {};
   	 var table =document.getElementById("student_list");
	 var rows = table.rows.length;
	 var reg =/^[0-9]*$/;
    		for(var a=0;a<rows;a++){//循环取出来得数据
    			var _data = {};
    	    	var _data_v = {};
    			var olids=$("[name^='olId']").val();//运营路线id
    			if(olids !=null || undefined!= olids || olids =="" ){//修改
        		var s =a+1;
        		var olId=$("#olId"+s).val();
        		var rgnPrCd=$("select[name='rgnPrCd"+s+"'] option:selected").val();
        		if(rgnPrCd == undefined || !reg.test(rgnPrCd) ){
        			rgnPrCd=$("#rgnPrCd"+s+"").val();
        		}  
        		var rgnCyCd=$("select[name='rgnCyCd"+s+"'] option:selected").val();
        		  if(rgnCyCd == undefined || !reg.test(rgnCyCd)){
        			rgnCyCd=$("#rgnCyCd"+s+"").val();
        		}  
        		var rgnPrCds=$("select[name='rgnPrCds"+s+"'] option:selected").val();
        		 if(rgnPrCds == undefined || !reg.test(rgnPrCds)){
        			rgnPrCds=$("#rgnPrCds"+s+"").val();
        		} 
        		var rgnCyCds=$("select[name='rgnCyCds"+s+"'] option:selected").val();
        		  if(rgnCyCds == undefined || !reg.test(rgnCyCds)){
        			rgnCyCds=$("#rgnCyCds"+s+"").val();
        		}  
        		if(olId!=null){
        			_data_v.olId=olId;//运营路线id
        			_data_v.rgnPrCd=rgnPrCd;
        			_data_v.rgnCyCd=rgnCyCd;
        			_data_v.rgnPrCds=rgnPrCds;
        			_data_v.rgnCyCds=rgnCyCds;
            	}
        		data_v.push(_data_v);
    		}else{
    		var luxian=$('.luxian');
    	    luxian.each(function(i, j){
    	    	var chufa = $('.chufa select', j)
    	    	var mudi = $('.mudi select', j)
	    	chufa.each(function(ii, jj){	
	    		if(ii === 0) _data.rgnPrCd =$(jj).val()
	    		if(ii === 1) _data.rgnCyCd =$(jj).val()
	    	}) 
	    	mudi.each(function(ii, jj){
	    		if(ii === 0) _data.rgnPrCds =$(jj).val()
	    		if(ii === 1) _data.rgnCyCds =$(jj).val()
	    	})
	    	data.push(_data);
    	    })
    	}
    	}
    	
    	if(olids == null){
    		//Data = JSON.stringify(data)
        	parms['jsonStr']=JSON.stringify(data);
    		var url = '<%=path%>/audit/audReturnVisit/addAudOpeLine.do';
    	}else{//修改
    		parms['jsonStr']=JSON.stringify(data_v);
    		var url = '<%=path%>/audit/audReturnVisit/updateAudOpeLine.do';
    	}
    var wait_dialog;
    $.ajax({
        type: 'post',
        dataType:'json',
        data:{"parms":parms,"id":id},
        url: url,
        beforeSend: function(){
            wait_dialog=$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
        },
        success:function(msg){
            wait_dialog.close();
            if(msg.success == 1){
                if(msg.data){
                    $("#visitId").val(msg.data);
                }
                location.reload();//刷新当前页
                $.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
                var callback=GET_W2Wcallback();
                callback();
                
            }else{
                $.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
            }
        }
    });
}


//保存回访记录(担保人/紧急联系人)
function saveVisitRecord(){
	var form = liger.get("formSet2");
    if (!form.valid()) {
    	$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO , SQ_type: "warning" });
        return false;
    }
    var visitId = $("#visitId").val();
	if(!visitId || visitId==""){
		top.$.ligerDialog.SQalert({content:"请先维护回访记录基本信息", SQ_type: "warning"});
		return;
	}
    var data = form.getData();
    data["visitId"] = visitId;
    data["visitTypeCd"] = AuditConstant.AUD_VISIT_TYP_CD_GUART; //回访类型-担保人/紧急联系人回访
    data["VisitRecordDetailJSON"] = JSON.stringify(perGrid.getData());//回访记录信息
    var url = '<%=path%>/audit/audVisitRecord/add.do';
    var wait_dialog;
    $.ajax({
		type: 'post',
		dataType:'json',
		data:data,
		url: url,
		beforeSend: function(){
	          wait_dialog=$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
	     },
		success:function(msg){
			 wait_dialog.close();
			 if(msg.success == 1){
				 $.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
			 }else{
				 $.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			 }
			 var visitId = $("#visitId").val();
			 perGrid.setParm("visitId",visitId);
			 perGrid.reload();
		}
	});
}
//后续回访
function toFlowVisitAdd (){
	var visitId = $("#visitId").val();
	if(!visitId || visitId==""){
		top.$.ligerDialog.SQalert({content:"请先维护回访记录基本信息", SQ_type: "warning"});
		return;
	}
	$.ligerDialog.SQopen({
        width: 1100,
        height:500,
        title : '后续回访记录',
        url:'<%=path%>/audit/audReturnVisit/toFlowVisitAddPage.do?visitId='+visitId+'&projectId='+_projectId+'&isDetail='+isDetail,
        buttons: [{
                text: "保存", type: 'ok', cls: 'l-dialog-btn-ok',
                onclick: function (item, Dialog) {
                    if (Dialog.onOk) Dialog.onOk();
                }
            }, {
                text: "取消", type: 'cancel', cls: 'l-dialog-btn-no',
                onclick: function (item, Dialog) {
                    if (Dialog.onCancel) Dialog.onCancel();
                }
            }
        ]
    });
//    Add_navTab("flowVisitInfo"+visitId, "后续回访记录", '<%=path%>/audit/audReturnVisit/toFlowVisitAddPage.do?visitId='+visitId+'&projectId='+_projectId+'&isDetail='+isDetail);
}

//禁用固定标签
function disableFixedFiled(){
	if(isDetail==1){
		if(liger.get("visitTm")){
			liger.get("visitTm").setDisabled(true);
		}
		if(liger.get("phone")){
			liger.get("phone").setDisabled(true);
		}
		if(liger.get("auditorNm")){
			liger.get("auditorNm").setDisabled(true);
		}
		if(liger.get("isSelfAnswer")){
			liger.get("isSelfAnswer").setDisabled(true);
		}
		if(liger.get("identityCd")){
			liger.get("identityCd").setDisabled(true);
		}
		if(liger.get("addressCd")){
			liger.get("addressCd").setDisabled(true);
		}
		if(liger.get("address")){
			liger.get("address").setDisabled(true);
		}
		if(liger.get("times")){
			liger.get("times").setDisabled(true);
		}
		if(liger.get("equipmentNum")){
			liger.get("equipmentNum").setDisabled(true);
		}
		if(liger.get("mainMarketPrice")){
			liger.get("mainMarketPrice").setDisabled(true);
		}
		/* if(liger.get("pickCardCd")){
			liger.get("pickCardCd").setDisabled(true);
		} */
		if(liger.get("statusCd")){
			liger.get("statusCd").setDisabled(true);
		}
		if(liger.get("certNo")){
			liger.get("certNo").setDisabled(true);
		}
		if(liger.get("postAddr")){
			liger.get("postAddr").setDisabled(true);
		}
		if(liger.get("cardDate")){
			liger.get("cardDate").setDisabled(true);
		}
		if(liger.get("itemPay")){
			liger.get("itemPay").setDisabled(true);
		}
		if(liger.get("leaseTerm")){
			liger.get("leaseTerm").setDisabled(true);
		}
		if(liger.get("certNo")){
			liger.get("certNo").setDisabled(true);
		}
		if(liger.get("postAddr")){
			liger.get("postAddr").setDisabled(true);
		}
		$("#guraRl").setDisabled_ligerTextarea(true);
		$("#guraRem").setDisabled_ligerTextarea(true);
		$("#ugRl").setDisabled_ligerTextarea(true);
		$("#ugRem").setDisabled_ligerTextarea(true);
		/* if(liger.get("guraRl")){
			liger.get("guraRl").setDisabled(true);
		}
		if(liger.get("guraRem")){
			liger.get("guraRem").setDisabled(true);
		}
		if(liger.get("ugRl")){
			liger.get("ugRl").setDisabled(true);
		}
		if(liger.get("ugRem")){
			liger.get("ugRem").setDisabled(true);
		} */
		if(liger.get("selfTkDesc")){
			liger.get("selfTkDesc").setDisabled(true);
		}
		if(liger.get("profitCd")){
			liger.get("profitCd").setDisabled(true);
		}
		if(liger.get("bizExp")){
			liger.get("bizExp").setDisabled(true);
		}
		if(liger.get("mainGdsTypCd")){
			liger.get("mainGdsTypCd").setDisabled(true);
		}
		if(liger.get("goods")){
			liger.get("goods").setDisabled(true);
		}
		if(liger.get("route")){
			liger.get("route").setDisabled(true);
		}
		if(liger.get("goodsRes")){
			liger.get("goodsRes").setDisabled(true);
		}
		if(liger.get("gdsStlWayCd")){
			liger.get("gdsStlWayCd").setDisabled(true);
		}
		if(liger.get("driver")){
			liger.get("driver").setDisabled(true);
		}
		if(liger.get("secondPayResCd")){
			liger.get("secondPayResCd").setDisabled(true);
		}
		/* if(liger.get("otherInfo")){
			liger.get("otherInfo").setDisabled(true);
		} */
	//	$("#otherInfo").setDisabled_ligerTextarea(true);
		if(liger.get("netIncome")){
			liger.get("netIncome").setDisabled(true);
		}
		if(liger.get("highEasonCharterdBus")){
			liger.get("highEasonCharterdBus").setDisabled(true);
		}
		if(liger.get("peakEasonCharterdBus")){
			liger.get("peakEasonCharterdBus").setDisabled(true);
		}
		if(liger.get("otherFeePct")){
			liger.get("otherFeePct").setDisabled(true);
		}
		if(liger.get("grossIncome")){
			liger.get("grossIncome").setDisabled(true);
		}
	}
}
//禁用承租人动态字段
function disabledTenantVisitInfo(){
	if(isDetail==1){
		if(liger.get("representativeName")){
			liger.get("representativeName").setDisabled(true);
		}
		if(liger.get("representativePhone")){
			liger.get("representativePhone").setDisabled(true);
		}
		if(liger.get("relationshipCd")){
			liger.get("relationshipCd").setDisabled(true);
		}
	}
}
//禁用车辆确认动态字段
function disabledVehVisitInfo(){
	if(isDetail==1){
		if(liger.get("motorHorsepower")){
			liger.get("motorHorsepower").setDisabled(true);
		}	
		if(liger.get("containerSize")){
			liger.get("containerSize").setDisabled(true);
		}	
		if(liger.get("isExistTrunc")){
			liger.get("isExistTrunc").setDisabled(true);
		}	
		if(liger.get("truncStandard")){
			liger.get("truncStandard").setDisabled(true);
		}	
		if(liger.get("truncConfig")){
			liger.get("truncConfig").setDisabled(true);
		}	
		if(liger.get("emissionStandard")){
			liger.get("emissionStandard").setDisabled(true);
		}	
		if(liger.get("gearbox")){
			liger.get("gearbox").setDisabled(true);
		}	
		if(liger.get("carBrandCd")){
			liger.get("carBrandCd").setDisabled(true);
		}	
		if(liger.get("holdSpace")){
			liger.get("holdSpace").setDisabled(true);
		}	
		if(liger.get("batDeg")){
			liger.get("batDeg").setDisabled(true);
		}	
		if(liger.get("endMileage")){
			liger.get("endMileage").setDisabled(true);
		}	
		if(liger.get("equipmentName")){
			liger.get("equipmentName").setDisabled(true);
		}	
		if(liger.get("yeayAmt")){
			liger.get("yeayAmt").setDisabled(true);
		}	
		if(liger.get("usefulLife")){
			liger.get("usefulLife").setDisabled(true);
		}	
		if(liger.get("mileage")){
			liger.get("mileage").setDisabled(true);
		}	
		if(liger.get("otherConfig")){
			liger.get("otherConfig").setDisabled(true);
		}	
		if(liger.get("seating")){
			liger.get("seating").setDisabled(true);
		}	
		if(liger.get("busLen")){
			liger.get("busLen").setDisabled(true);
		}	
		if(liger.get("braking")){
			liger.get("braking").setDisabled(true);
		}	
		if(liger.get("powerCd")){
			liger.get("powerCd").setDisabled(true);
		}	
		if(liger.get("potionCfg")){
			liger.get("potionCfg").setDisabled(true);
		}	
	}
}
//禁用融资方案动态字段
function disabledSchemeVisitInfo(){
	if(isDetail==1){
		if(liger.get("truncMarketPrice")){
			liger.get("truncMarketPrice").setDisabled(true);
		}
		if(liger.get("monthRepayment")){
			liger.get("monthRepayment").setDisabled(true);
		}
		if(liger.get("agentCardStateCd")){
			liger.get("agentCardStateCd").setDisabled(true);
		}
		if(liger.get("eqmtAddressCd")){
			liger.get("eqmtAddressCd").setDisabled(true);
		}
		if(liger.get("vehiclesDoorCd")){
			liger.get("vehiclesDoorCd").setDisabled(true);
		}
		$("#affiliatedCompany").setDisabled_ligerTextarea(true);
		/* if(liger.get("affiliatedCompany")){
			liger.get("affiliatedCompany").setDisabled(true);
		} */
		if(liger.get("subsidyAmt")){
			liger.get("subsidyAmt").setDisabled(true);
		}
		if(liger.get("pickCardTm")){
			liger.get("pickCardTm").setDisabled(true);
		}
		if(liger.get("dealerAmt")){
			liger.get("dealerAmt").setDisabled(true);
		}
		if(liger.get("firstPayPct")){
			liger.get("firstPayPct").setDisabled(true);
		}
		if(liger.get("financingAmt")){
			liger.get("financingAmt").setDisabled(true);
		}
		if(liger.get("smallRepaymentAmt")){
			liger.get("smallRepaymentAmt").setDisabled(true);
		}
		if(liger.get("largeRepaymentAmt")){
			liger.get("largeRepaymentAmt").setDisabled(true);
		}
	}
}
//禁用农机动态字段
/* function disabledFarmSpecial(){
	if(!liger.get("profitCd")){
		$("#farmDyncDiv").hide();
		$("#mkMoneyDyncDiv").hide();
	}
	if(isDetail==1){
		if(liger.get("profitCd")){
			liger.get("profitCd").setDisabled(true);
		}
		if(liger.get("experience")){
			liger.get("experience").setDisabled(true);
		}
		if(liger.get("workType")){
			liger.get("workType").setDisabled(true);
		}
		if(liger.get("workArea")){
			liger.get("workArea").setDisabled(true);
		}
		if(liger.get("workTime")){
			liger.get("workTime").setDisabled(true);
		}
		if(liger.get("settlement")){
			liger.get("settlement").setDisabled(true);
		}
		if(liger.get("netIncome")){
			liger.get("netIncome").setDisabled(true);
		}
		if(liger.get("yearNetAmt")){
			liger.get("yearNetAmt").setDisabled(true);
		}
		if(liger.get("loanPrjAmt")){
			liger.get("loanPrjAmt").setDisabled(true);
		}
		if(liger.get("yearCostAmt")){
			liger.get("yearCostAmt").setDisabled(true);
		}
		if(liger.get("yearDominateAmt")){
			liger.get("yearDominateAmt").setDisabled(true);
		}
		if(liger.get("isPress")){
			liger.get("isPress").setDisabled(true);
		}
		if(liger.get("ownLand")){
			liger.get("ownLand").setDisabled(true);
		}
		if(liger.get("contractLand")){
			liger.get("contractLand").setDisabled(true);
		}
		if(liger.get("contractPrice")){
			liger.get("contractPrice").setDisabled(true);
		}
		if(liger.get("growCrops")){
			liger.get("growCrops").setDisabled(true);
		}
		if(liger.get("growthPeriod")){
			liger.get("growthPeriod").setDisabled(true);
		}
		if(liger.get("yield")){
			liger.get("yield").setDisabled(true);
		}
		if(liger.get("salePrice")){
			liger.get("salePrice").setDisabled(true);
		}
		if(liger.get("perMuGrossAmt")){
			liger.get("perMuGrossAmt").setDisabled(true);
		}
		if(liger.get("perMuInvestmentAmt")){
			liger.get("perMuInvestmentAmt").setDisabled(true);
		}
		if(liger.get("pemMuNetAmt")){
			liger.get("pemMuNetAmt").setDisabled(true);
		}
		if(liger.get("settlementPeriod")){
			liger.get("settlementPeriod").setDisabled(true);
		}
		if(liger.get("netIncome2")){
			liger.get("netIncome2").setDisabled(true);
		}
	}
} */
//禁用农机根据盈利方式刷新动态字段
/* function disabledFarmMkMoneyTpe(){
	if(isDetail==1){
		if(liger.get("otherSourcesIncome")){
			liger.get("otherSourcesIncome").setDisabled(true);
		}
		if(liger.get("newWorkType")){
			liger.get("newWorkType").setDisabled(true);
		}
		if(liger.get("newWorkArea")){
			liger.get("newWorkArea").setDisabled(true);
		}
		if(liger.get("newWorkTime")){
			liger.get("newWorkTime").setDisabled(true);
		}
		if(liger.get("newSettlement")){
			liger.get("newSettlement").setDisabled(true);
		}
		if(liger.get("driverInfo")){
			liger.get("driverInfo").setDisabled(true);
		}
		if(liger.get("sumIncome")){
			liger.get("sumIncome").setDisabled(true);
		}
	}
} */
//禁用卡车动态字段
/* function disabledTkSpecial(){
	if(isDetail==1){
		if(liger.get("profitCd_tk")){
			liger.get("profitCd_tk").setDisabled(true);
		}
	}
} */
//禁用卡车根据盈利方式刷新动态字段
/* function disabledTkMkMoneyTpe(){
	if(isDetail==1){
		if(liger.get("cmpDesc")){
			liger.get("cmpDesc").setDisabled(true);
		}
		if(liger.get("biz")){
			liger.get("biz").setDisabled(true);
		}
		if(liger.get("bizExp")){
			liger.get("bizExp").setDisabled(true);
		}
		if(liger.get("selfTkDesc")){
			liger.get("selfTkDesc").setDisabled(true);
		}
		if(liger.get("tkUseDesc")){
			liger.get("tkUseDesc").setDisabled(true);
		}
		if(liger.get("transRange")){
			liger.get("transRange").setDisabled(true);
		}
		if(liger.get("income")){
			liger.get("income").setDisabled(true);
		}
		if(liger.get("otherInfo_tk")){
			liger.get("otherInfo_tk").setDisabled(true);
		}
		if(liger.get("goods")){
			liger.get("goods").setDisabled(true);
		}
		if(liger.get("route")){
			liger.get("route").setDisabled(true);
		}
		if(liger.get("toGdsRes")){
			liger.get("toGdsRes").setDisabled(true);
		}
		if(liger.get("toGds")){
			liger.get("toGds").setDisabled(true);
		}
		if(liger.get("toStlWay")){
			liger.get("toStlWay").setDisabled(true);
		}
		if(liger.get("cmGdsRes")){
			liger.get("cmGdsRes").setDisabled(true);
		}
		if(liger.get("cmGds")){
			liger.get("cmGds").setDisabled(true);
		}
		if(liger.get("cmStlWay")){
			liger.get("cmStlWay").setDisabled(true);
		}
		if(liger.get("driver")){
			liger.get("driver").setDisabled(true);
		}
		if(liger.get("transTms")){
			liger.get("transTms").setDisabled(true);
		}
		if(liger.get("transFee")){
			liger.get("transFee").setDisabled(true);
		}
		if(liger.get("purInc")){
			liger.get("purInc").setDisabled(true);
		}
	}
} */
//禁用乘用车动态字段
/* function disabledCarSpecial(){
	if(!liger.get("workTypeCd")){
		$("#carDyncDiv").hide();
		$("#workTypDyncDiv").hide();
	}
	if(isDetail==1){
		if(liger.get("workTypeCd")){
			liger.get("workTypeCd").setDisabled(true);
		}
	}
} */
//禁用乘用车根据工作方式刷新字段
/* function disabledCarWorkTyp(){
	if(isDetail==1){
		if(liger.get("companyName")){
			liger.get("companyName").setDisabled(true);
		}
		if(liger.get("companyAddressCd")){
			liger.get("companyAddressCd").setDisabled(true);
		}
		if(liger.get("workYeays")){
			liger.get("workYeays").setDisabled(true);
		}
		if(liger.get("postCd")){
			liger.get("postCd").setDisabled(true);
		}
		if(liger.get("work")){
			liger.get("work").setDisabled(true);
		}
		if(liger.get("monthIncome")){
			liger.get("monthIncome").setDisabled(true);
		}
		if(liger.get("salaryWayCd")){
			liger.get("salaryWayCd").setDisabled(true);
		}
		if(liger.get("isSocialSecurity")){
			liger.get("isSocialSecurity").setDisabled(true);
		}
		if(liger.get("carUse")){
			liger.get("carUse").setDisabled(true);
		}
		if(liger.get("downPaymentCd")){
			liger.get("downPaymentCd").setDisabled(true);
		}
		if(liger.get("secondRepayment")){
			liger.get("secondRepayment").setDisabled(true);
		}
		if(liger.get("otherDebt")){
			liger.get("otherDebt").setDisabled(true);
		}
		if(liger.get("spouseInfo")){
			liger.get("spouseInfo").setDisabled(true);
		}
		if(liger.get("otherInfo")){
			liger.get("otherInfo").setDisabled(true);
		}
		if(liger.get("companyDesc")){
			liger.get("companyDesc").setDisabled(true);
		}
		if(liger.get("business")){
			liger.get("business").setDisabled(true);
		}
		if(liger.get("operatingPeriod")){
			liger.get("operatingPeriod").setDisabled(true);
		}
		if(liger.get("companyIncome")){
			liger.get("companyIncome").setDisabled(true);
		}
		if(liger.get("sourceIncome")){
			liger.get("sourceIncome").setDisabled(true);
		}
	}
} */

function toReturnVisitAddPage(){
	//window.location.href='<%=path%>/audit/audReturnVisit/toAddPage.do?isDetail=1&projectId=${projectId }&proIntId=${proIntId }';
	window.open('<%=path%>/audit/audReturnVisit/toAddPage.do?isDetail=1&projectId=${projectId }&proIntId=${proIntId }');
}

//2018-3-19 by yaoxiurong 设置默认值
//设置数据默认值
function setDefalutData(){
	if(liger.get("isSelfAnswer")){
		var isSelfAnswer = liger.get("isSelfAnswer");
		isSelfAnswer.selectValue("1");
	}
	if(liger.get("identityCd")){
		var identityCd = liger.get("identityCd");
		identityCd.selectValue("1");
	}
	if(liger.get("addressCd")){
		var addressCd = liger.get("addressCd");
		addressCd.selectValue("1");
	}
	if(liger.get("pickCardCd")){
		var pickCardCd = liger.get("pickCardCd");
		pickCardCd.selectValue("1");
	}
	if(liger.get("statusCd")){
		var statusCd = liger.get("statusCd");
		statusCd.selectValue("1");
	}
	if(liger.get("agentCardStateCd")){
		var agentCardStateCd = liger.get("agentCardStateCd");
		agentCardStateCd.selectValue("3");
	}
}





function toAddTable() {

    var tr_size=$("#student_list tr").length;
    if(tr_size==undefined){
    	
    	
    }
    var length = Number(tr_size) + Number(1);
    var str="<tr class=\"luxian header_title\" id="+length+">\n" +
            "<td width=\"3%\"><input type=\"checkbox\" name=\"checkAllT\" id=\"checkALLT\" value="+length+" /></td>" +
            "                    <td width=\"50%\">" +
            "                        <div class=\"fieldBox col_100_auto\">" +
            "                            <div class=\"label\">出发地</div>" +
            "                            <div class=\"chufa field \">" +
            "                            <input name=\"olId\" id=\"olId"+length+"\" type=\"hidden\" value=\"\" >" +
            "                                <select class=\"newEditor\" name=\"rgnPrCd"+length+"\"  id=\"rgnPrCd"+length+"\"  validate=\"{required:true}\"  onchange='rgnProvChange("+length+",this.value,1)'  data-value=\" \"  >" +
            "                                    <option selected=\"selected\" value=\" \">请选择</option>" +
            "                                </select>\n" +
            "                                <span id=\"rgnProvCdSpan\" class=\"requiredSymbol\" style=\"display: none\">*</span>" +
            "                                <select class=\"newEditor\" name=\"rgnCyCd"+length+"\"  id=\"rgnCyCd"+length+"\"   data-value=\" \"  >" +
            "                                    <option  selected=\"selected\" value=\" \">请选择</option>" +
            "                                </select>" +
            "                            </div>" +
            "                        </div>" +
            "                    </td>" +
            "                    <td width=\"50%\">" +
            "                        <div class=\"fieldBox col_100_auto\">" +
            "                            <div class=\"label\">目的地</div>" +
            "                            <div class=\"mudi field \">" +
            "                                <select class=\"newEditor\" name=\"rgnPrCds"+length+"\"  id=\"rgnPrCds"+length+"\" validate=\"{required:true}\"  onchange='rgnProvChange("+length+",this.value,2)'   data-value=\" \"  >" +
            "                                    <option selected=\"selected\" value=\" \">请选择</option>" +
            "                                </select>\n" +
            "                                <span id=\"rgnProvCdSpan\" class=\"requiredSymbol\" style=\"display: none\">*</span>" +
            "                                <select class=\"newEditor\" name=\"rgnCyCds"+length+"\"  id=\"rgnCyCds"+length+"\" data-value=\" \"  >" +
            "                                    <option selected=\"selected\" value=\" \">请选择</option>" +
            "                                </select>" +
            "                            </div>" +
            "                        </div>" +
            "                    </td>"+
            "                </tr>";
           // console.log(str);
    $("#student_list").append(str);
    var formSet3 = liger.get('formSet3')
    if(!formSet3.autoEditors) formSet3.autoEditors = [] // 没有任何表单元素得时候，初始化为[]
    $('#formSet3').check_ligerFormEditor();
    initRegionProvSelectData();
}

            
  function toDelTable() {
  
    var obj = document.getElementsByName("checkAllT");
   
    var selectValue=new Array();   //  selectvalue为radio中选中的值
    for(k in obj){
        if(obj[k].checked)
            selectValue.push(obj[k].value);
    }
    top.$.ligerDialog.confirm("确认删除选中项吗?", function (flag) {
		if(!flag){
			return;
		}else{
			if(selectValue.length==0){
				$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_SELECT_MORE_ROW, SQ_type: "warring"});
				return;
			}
			var _ids = [];
			if(selectValue.length>0){
		        for (var i=0;i<selectValue.length;i++) {
		            $("#"+selectValue[i]+"").remove();
		            var str =selectValue[i];
		            if(str.charCodeAt(i) > 14){
		            	_ids[i] =str;
			    	}
		        }
		    }else {
		    	
		    	if(selectValue[0].value().length >14){
		    		 _ids[0] =selectValue[0];
		    	}
		        $("#"+selectValue[0]+"").remove();
		    }
			
			//请求后台批量删除
			var wait_dialog;
			$.ajax({
				type: 'post',
				dataType:'json',
				data:{ids:JSON.stringify(_ids)},
				url: '<%=path%>/audit/audReturnVisit/deltableByIds.do',
				beforeSend: function(){
			          wait_dialog=top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
			     },
				success:function(msg){
					wait_dialog.close();
					 if(msg.success == 1){
						 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
						 location.reload();//刷新当前页
					 }else{
						 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
					 }
				}
			});
		}
	});
}
//验证自有车辆 
function checkSelfTkDesc() {
	var s = document.getElementById("selfTkDesc").value;
	var reg = /^[0-9]\d*$/;  
	  if(!reg.test(s)){
		//$.ligerDialog.SQalert({"输入有误,请输入整数!", SQ_type: "error"});
		alert("输入有误,请输入整数!");
		$('#selfTkDesc').val("");//清空文本框
	}  
} 
//验证运营年限
function checkBizExp(){
	var reg=/^\d*\.{0,1}\d{0,1}$/;
	var s = document.getElementById("bizExp").value;
	  if(!reg.test(s)){
	   	alert("输入有误,请录入数字或一位小数!");
	   	$('#bizExp').val("");//清空文本框
	}
}
//验证货物重量
function checkCargoWeigth (){
 	var s = document.getElementById("cargoWeigth").value;
 	var reg=/^\d+(\.\d{1,2})?$/ ;
 	if(!reg.test(s)){
 		alert("输入有误,请录入数字或两位小数!");
   		$('#cargoWeigth').val("");//清空文本框
 	}
}
//验证货物体积
function checkCargoVomule(){
	var s = document.getElementById("cargoVomule").value;
	var reg=/^\d+(\.\d{1,2})?$/ ;
	if(!reg.test(s)){
		alert("输入有误,请录入数字或两位小数!");
   		$('#cargoVomule').val("");//清空文本框
	}
}
//验证线路月效率
function ckeckCircuitEfficiency(){
	var s = document.getElementById("circuitEfficiency").value;
	var reg = /^[0-9]\d*$/;  //整数
	if(!reg.test(s)){
		alert("输入有误,请录入整数!");
   		$('#circuitEfficiency').val("");//清空文本框
	}
	
}
//验证单趟运价
function checkfare(){
	var s = document.getElementById("fare").value;
	var reg=/^\d+(\.\d{1,2})?$/;
	if(!reg.test(s)){
		alert("输入有误,请录入数字或两位小数!");
		$('#fare').val("");//清空文本框
	}
}
//初始化省级数据
function initRegionProvSelectData(){
	$.ajax({
		type: 'post',
		dataType:'json',
		url: '<%=path%>/system/sysRegion/getProvinceRegion.do',
		success:function(msg){
			 if(msg.success == 1){
				var str ="";
					 $("select[name^='rgnPrCd']").each(function(j,item){
						 //debugger
						 if($('option', item).length <= 1){
							 $.each(msg.data,function(index,obj){
								 str  = "<option value='"+obj.key+"'>"+obj.value+"</option>" ;
								$(str).appendTo($(item));
								liger.get($(item).attr("id")).setSelect();
							 })
						 }
					}); 
			 }else{
				 $.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			 }
		}
	});
}
$(function(){
	$(".l-text-wrapper").click(function(){
		//alert("请先改变省");
		
	});
});


function rgnProvfocus(index,_provCd,i){
	if(index == 1){
		var rgnPrCd=$("#rgnPrCd"+i).val();
		if(rgnPrCd!=null){
			rgnProvChange(index,rgnPrCd,1)
		}
	}else{
		var rgnPrCds=$("#rgnPrCds"+i).val();
		if(rgnPrCds!=null){ 
			rgnProvChange(index,rgnPrCds,2);
		}
	}
}

//初始化市级数据
function rgnProvChange(index,_provCd,i){
	if(_provCd == " "||!_provCd){
		return;
	} 
	$.ajax({
		type: 'post',
		dataType:'json',
		data:{rgnCd:_provCd},
		url: '<%=path%>/system/sysRegion/getRegionByRgnCd.do',
		success:function(msg){
			 if(msg.success == 1){
				 if(msg.data){
					 //var str ="";
					 function getOptionsStr() {
						 var str ="<option selected=\"selected\" value=\" \">请选择</option>";
						 $.each(msg.data,function(index,obj){
							 str += "<option value='"+obj.key+"'>"+obj.value+"</option>" ;
						}); 
						 return str
					 }
					 if(i==1){
						 var $select = $("select[name='rgnCyCd"+index+"']")
							$select.empty();//先清空市  
							$select.append(getOptionsStr())
							liger.get($select.attr("id")).setSelect();
						 }else{
							 var $select_s = $("select[name='rgnCyCds"+index+"']")
						    $select_s.empty();//先清空市
						    $select_s.append(getOptionsStr())
							liger.get($select_s.attr("id")).setSelect();
						 }
				 }else{
					  
				 }
			 }else{
				 $.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			 }
		}
	});
}
	
	$(function(){ 
		//是否本人接听
		 if(isSelfAnswer != null && isSelfAnswer != ""){
				liger.get("isSelfAnswer").setDisabled();
			} 
		 if(IdentityCd != null && IdentityCd != ""){
				liger.get("identityCd").setDisabled();
			} 
		
		 if(AddressCd != null && AddressCd != ""){
				liger.get("addressCd").setDisabled();
			} 
		
		 if(IsExistTrunc != null && IsExistTrunc != ""){
				liger.get("isExistTrunc").setDisabled();
			} 
		
/* 		 if(PickCardCd != null && PickCardCd != ""){
				liger.get("pickCardCd").setDisabled();
			}  */
		
		 if(StatusCd != null && StatusCd != ""){
				liger.get("statusCd").setDisabled();
			} 
		
		 if(AgentCardStateCd != null && AgentCardStateCd != ""){
				liger.get("agentCardStateCd").setDisabled();
			} 
		
		 if(EqmtAddressCd != null && EqmtAddressCd != ""){
				liger.get("eqmtAddressCd").setDisabled();
			} 
		
		 if(ProfitCd != null && ProfitCd != ""){
				liger.get("profitCd").setDisabled();
			} 
		//alert("MainGdsTypCd"+MainGdsTypCd);
		 if(MainGdsTypCd != null && MainGdsTypCd != ""){
				liger.get("mainGdsTypCd").setDisabled();
			} 
		
		 if(Goods != null && Goods != ""){
				liger.get("goods").setDisabled();
			} 
		
		 if(GoodsRes != null && GoodsRes != ""){
				liger.get("goodsRes").setDisabled();
			} 
		
		 if(GdsStlWayCd != null && GdsStlWayCd != ""){
				liger.get("gdsStlWayCd").setDisabled();
			} 
		
		 if(Driver != null && Driver != ""){
				liger.get("driver").setDisabled();
			} 
		 if(ProfitCd != null && ProfitCd != ""){
				liger.get("profitCd").setDisabled();
			} 
		 if(circuitType != null && circuitType != ""){
				liger.get("circuitType").setDisabled();
			}
		 if(handingMode != null && handingMode != ""){
				liger.get("handingMode").setDisabled();
			}
		 if(circuitEfficiency != null && circuitEfficiency != ""){
				liger.get("circuitEfficiency").setDisabled();
			}
		 if(Fare != null && Fare != ""){
				liger.get("fare").setDisabled();
			}
		 if(SecondPayResCd != null && SecondPayResCd != ""){
				liger.get("secondPayResCd").setDisabled();
			} 
		 if(AffiliatedCompany != null && AffiliatedCompany != ""){
				liger.get("affiliatedCompany").setDisabled();
			} 
		 if(GuraRl != null && GuraRl != ""){
				liger.get("guraRl").setDisabled();
			} 
		 if(GuraRem != null && GuraRem != ""){
				liger.get("guraRem").setDisabled();
			} 
		 if(OtherInfo != null && OtherInfo != ""){
				liger.get("otherInfo").setDisabled();
			} 


});
</script>
<div class="ClearLine"></div>
</body>
</html>
		